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:
Valentin Lorentz 2022-04-08 13:02:31 +02:00
parent 9ec4eb9563
commit 94c7c7dfa3

View File

@ -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):