mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-26 12:43:09 +01:00
supybot-plugin-create: Remove fallback for missing supybot.i18n
It is unlikely new plugins will be used on stock Supybot or Gribble.
This commit is contained in:
parent
9ec4eb9563
commit
94c7c7dfa3
@ -92,13 +92,10 @@ pluginTemplate = '''
|
|||||||
|
|
||||||
from supybot import utils, plugins, ircutils, callbacks
|
from supybot import utils, plugins, ircutils, callbacks
|
||||||
from supybot.commands import *
|
from supybot.commands import *
|
||||||
try:
|
from supybot.i18n import PluginInternationalization
|
||||||
from supybot.i18n import PluginInternationalization
|
|
||||||
_ = PluginInternationalization('%s')
|
|
||||||
except ImportError:
|
_ = PluginInternationalization('%s')
|
||||||
# Placeholder that allows to run the plugin on a bot
|
|
||||||
# without the i18n module
|
|
||||||
_ = lambda x: x
|
|
||||||
|
|
||||||
|
|
||||||
class %s(callbacks.Plugin):
|
class %s(callbacks.Plugin):
|
||||||
|
Loading…
Reference in New Issue
Block a user