From 54a6563b0662e357ddd420174aa233bbb7733a20 Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Tue, 19 Feb 2019 12:08:13 -0500 Subject: [PATCH] python3 fixes --- __init__.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/__init__.py b/__init__.py index d3cb8bc..8a27c6a 100644 --- a/__init__.py +++ b/__init__.py @@ -35,6 +35,7 @@ here. This should describe *what* the plugin does. import supybot import supybot.world as world +import imp # 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. @@ -50,14 +51,15 @@ __contributors__ = {} # This is a url where the most recent plugin package can be downloaded. __url__ = '' # 'http://supybot.com/Members/yourname/Unicode/download' -import config -import plugin -reload(plugin) # In case we're being reloaded. +from . import config +from . import plugin +from imp import reload +imp.reload(plugin) # In case we're being reloaded. # 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! if world.testing: - import test + from . import test Class = plugin.Class configure = config.configure