mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-05 18:49:23 +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.commands import *
|
||||
try:
|
||||
from supybot.i18n import PluginInternationalization
|
||||
_ = PluginInternationalization('%s')
|
||||
except ImportError:
|
||||
# Placeholder that allows to run the plugin on a bot
|
||||
# without the i18n module
|
||||
_ = lambda x: x
|
||||
from supybot.i18n import PluginInternationalization
|
||||
|
||||
|
||||
_ = PluginInternationalization('%s')
|
||||
|
||||
|
||||
class %s(callbacks.Plugin):
|
||||
|
Loading…
Reference in New Issue
Block a user