From 9a07f07a721b9992583da68068f225261744465a Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 27 Dec 2014 11:16:08 -0800 Subject: [PATCH] supybot-plugin-create: create PEP8-compliant files --- scripts/supybot-plugin-create | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/supybot-plugin-create b/scripts/supybot-plugin-create index 30a77e717..34143e7d5 100644 --- a/scripts/supybot-plugin-create +++ b/scripts/supybot-plugin-create @@ -101,7 +101,8 @@ try: except ImportError: # Placeholder that allows to run the plugin on a bot # without the i18n module - _ = lambda x:x + _ = lambda x: x + class %s(callbacks.Plugin): """%s""" @@ -125,7 +126,8 @@ try: except: # Placeholder that allows to run the plugin on a bot # without the i18n module - _ = lambda x:x + _ = lambda x: x + def configure(advanced): # This will be called by supybot to configure this module. advanced is @@ -194,6 +196,7 @@ testTemplate = ''' from supybot.test import * + class %sTestCase(PluginTestCase): plugins = (%r,)