Unix: Prevent name conflict with _().

This commit is contained in:
Valentin Lorentz 2012-09-23 16:30:14 +00:00
parent 3a43229755
commit d6da8a5a0d

View File

@ -230,7 +230,7 @@ class Unix(callbacks.Plugin):
'variable appropriately.')) 'variable appropriately.'))
@internationalizeDocstring @internationalizeDocstring
def wtf(self, irc, msg, args, _, something): def wtf(self, irc, msg, args, foo, something):
"""[is] <something> """[is] <something>
Returns wtf <something> is. 'wtf' is a *nix command that first Returns wtf <something> is. 'wtf' is a *nix command that first
@ -248,7 +248,7 @@ class Unix(callbacks.Plugin):
except OSError: except OSError:
irc.error(_('It seems the configured wtf command was not ' irc.error(_('It seems the configured wtf command was not '
'available.'), Raise=True) 'available.'), Raise=True)
(out, _) = inst.communicate() (out, foo) = inst.communicate()
inst.wait() inst.wait()
if out: if out:
response = out.decode('utf8').splitlines()[0].strip() response = out.decode('utf8').splitlines()[0].strip()