From 94c7c7dfa31d8b2ca6eae647be8448f9f43f6faf Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 8 Apr 2022 13:02:31 +0200 Subject: [PATCH] supybot-plugin-create: Remove fallback for missing supybot.i18n It is unlikely new plugins will be used on stock Supybot or Gribble. --- scripts/supybot-plugin-create | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/scripts/supybot-plugin-create b/scripts/supybot-plugin-create index 9f5349542..c4b687454 100644 --- a/scripts/supybot-plugin-create +++ b/scripts/supybot-plugin-create @@ -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):