mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-29 13:44:17 +01:00
Merge pull request #988 from GLolol/pep8
supybot-plugin-create: create PEP8-compliant files
This commit is contained in:
commit
8b1b75eaa6
@ -101,7 +101,8 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
# Placeholder that allows to run the plugin on a bot
|
# Placeholder that allows to run the plugin on a bot
|
||||||
# without the i18n module
|
# without the i18n module
|
||||||
_ = lambda x:x
|
_ = lambda x: x
|
||||||
|
|
||||||
|
|
||||||
class %s(callbacks.Plugin):
|
class %s(callbacks.Plugin):
|
||||||
"""%s"""
|
"""%s"""
|
||||||
@ -125,7 +126,8 @@ try:
|
|||||||
except:
|
except:
|
||||||
# Placeholder that allows to run the plugin on a bot
|
# Placeholder that allows to run the plugin on a bot
|
||||||
# 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
|
||||||
@ -194,6 +196,7 @@ testTemplate = '''
|
|||||||
|
|
||||||
from supybot.test import *
|
from supybot.test import *
|
||||||
|
|
||||||
|
|
||||||
class %sTestCase(PluginTestCase):
|
class %sTestCase(PluginTestCase):
|
||||||
plugins = (%r,)
|
plugins = (%r,)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user