python3 compatible

This commit is contained in:
Gordon Shumway 2019-02-24 21:37:00 -05:00 committed by GitHub
parent b75b677568
commit 60279c8d81

View File

@ -35,6 +35,7 @@ here. This should describe *what* the plugin does.
import supybot import supybot
import supybot.world as world import supybot.world as world
import importlib
# Use this for the version of this plugin. You may wish to put a CVS keyword # Use this for the version of this plugin. You may wish to put a CVS keyword
# in here if you're keeping the plugin in CVS or some similar system. # in here if you're keeping the plugin in CVS or some similar system.
@ -51,14 +52,14 @@ __contributors__ = {}
# This is a url where the most recent plugin package can be downloaded. # This is a url where the most recent plugin package can be downloaded.
__url__ = '' # 'http://supybot.com/Members/yourname/HuntNFish/download' __url__ = '' # 'http://supybot.com/Members/yourname/HuntNFish/download'
import config from . import config
import plugin from . import plugin
reload(plugin) # In case we're being reloaded. importlib.reload(plugin) # In case we're being reloaded.
# Add more reloads here if you add third-party modules and want them to be # Add more reloads here if you add third-party modules and want them to be
# reloaded when this plugin is reloaded. Don't forget to import them as well! # reloaded when this plugin is reloaded. Don't forget to import them as well!
if world.testing: if world.testing:
import test from . import test
Class = plugin.Class Class = plugin.Class
configure = config.configure configure = config.configure