--- a/__init__.py Fri Nov 09 15:20:44 2018 +0800
+++ b/__init__.py Fri Nov 09 15:21:44 2018 +0800
This plugin provides an interface to the Mercurial help system.
+from __future__ import absolute_import
-import supybot.world as world
+from supybot import world
# 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.
# This is a url where the most recent plugin package can be downloaded.
__url__ = '' # 'http://supybot.com/Members/yourname/Mercurial/download'
-reload(plugin) # In case we're being reloaded.
+if sys.version_info >= (3, 4):
+ from importlib import reload
+# 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!
configure = config.configure
--- a/config.py Fri Nov 09 15:20:44 2018 +0800
+++ b/config.py Fri Nov 09 15:21:44 2018 +0800
-import supybot.conf as conf
-import supybot.registry as registry
+from supybot import conf, registry
# This will be called by supybot to configure this module. advanced is
--- a/plugin.py Fri Nov 09 15:20:44 2018 +0800
+++ b/plugin.py Fri Nov 09 15:21:44 2018 +0800
-import supybot.utils as utils
+from supybot import utils, plugins, ircutils, callbacks
from supybot.commands import *
-import supybot.plugins as plugins
-import supybot.ircutils as ircutils
-import supybot.callbacks as callbacks
--- a/test.py Fri Nov 09 15:20:44 2018 +0800
+++ b/test.py Fri Nov 09 15:21:44 2018 +0800
class MercurialTestCase(PluginTestCase):
self.assertRegexp('hghelp verify', '.*verify the integrity.*')
self.assertNotError('hghelp foo')