From cc43f5b4737c7212e964a2ea1f64a27a0ae6bdba Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 10 Jul 2015 09:08:39 -0700 Subject: [PATCH] PassGen: syntactic cleanup --- PassGen/plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PassGen/plugin.py b/PassGen/plugin.py index bdc2ae2..8128ff2 100644 --- a/PassGen/plugin.py +++ b/PassGen/plugin.py @@ -41,7 +41,7 @@ try: except ImportError: # Placeholder that allows to run the plugin on a bot # without the i18n module - _ = lambda x:x + _ = lambda x: x class PassGen(callbacks.Plugin): """Generates passwords on the fly!""" @@ -49,7 +49,7 @@ class PassGen(callbacks.Plugin): def mkpasswd(self, irc, msg, args, len): """[] - + Makes a randomly generated password, [] characters long if specified. Otherwise, uses the bot's configured default length. (see config plugins.PassGen.defaultLen)""" @@ -58,7 +58,7 @@ class PassGen(callbacks.Plugin): len = self.registryValue('defaultLen') elif len > maxlen: irc.error("The specified length ({}) is longer than the maximum " - "allowed on this bot. Current maximum: {}".format(len, maxlen), \ + "allowed on this bot. Current maximum: {}".format(len, maxlen), Raise=True) rg = random.SystemRandom() letters = string.ascii_letters + string.digits + self.registryValue('symbols')