From 9f0db136752bd3feec37a5c28961e265ef3d5679 Mon Sep 17 00:00:00 2001 From: Jack Wilsdon Date: Sun, 1 May 2016 21:44:40 +0100 Subject: [PATCH] Remove unnecessary variable --- beetsplug/hook.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/beetsplug/hook.py b/beetsplug/hook.py index 99d7dc37d..2085e64c5 100644 --- a/beetsplug/hook.py +++ b/beetsplug/hook.py @@ -90,8 +90,7 @@ class HookPlugin(BeetsPlugin): self._log.error('invalid command "{0}"', command) return - encoding = _arg_encoding() - formatter = CodingFormatter(encoding) + formatter = CodingFormatter(_arg_encoding()) formatted_command = formatter.format(command, event=event, **kwargs) command_pieces = shlex_split(formatted_command)