diff --git a/plugins/Unix/plugin.py b/plugins/Unix/plugin.py index 839826c84..067a0a4a9 100644 --- a/plugins/Unix/plugin.py +++ b/plugins/Unix/plugin.py @@ -109,7 +109,7 @@ class Unix(callbacks.Plugin): irc.reply(format('%i', os.getpid()), private=True) pid = wrap(pid, [('checkCapability', 'owner')]) - _cryptre = re.compile(r'[./0-9A-Za-z]') + _cryptre = re.compile(b'[./0-9A-Za-z]') @internationalizeDocstring def crypt(self, irc, msg, args, password, salt): """ [] @@ -120,12 +120,12 @@ class Unix(callbacks.Plugin): based crypt rather than the standard DES based crypt. """ def makeSalt(): - s = '\x00' - while self._cryptre.sub('', s) != '': + s = b'\x00' + while self._cryptre.sub(b'', s) != b'': s = struct.pack('