supybot-plugin-create: create PEP8-compliant files

This commit is contained in:
James Lu 2014-12-27 11:16:08 -08:00
parent ecb4ab0487
commit 9a07f07a72

View File

@ -103,6 +103,7 @@ except ImportError:
# without the i18n module # without the i18n module
_ = lambda x: x _ = lambda x: x
class %s(callbacks.Plugin): class %s(callbacks.Plugin):
"""%s""" """%s"""
%s %s
@ -127,6 +128,7 @@ except:
# without the i18n module # without the i18n module
_ = lambda x: x _ = lambda x: x
def configure(advanced): def configure(advanced):
# This will be called by supybot to configure this module. advanced is # This will be called by supybot to configure this module. advanced is
# a bool that specifies whether the user identified themself as an advanced # a bool that specifies whether the user identified themself as an advanced
@ -194,6 +196,7 @@ testTemplate = '''
from supybot.test import * from supybot.test import *
class %sTestCase(PluginTestCase): class %sTestCase(PluginTestCase):
plugins = (%r,) plugins = (%r,)