From 1481ac38ad737592941e69ceafbc9d459be3182b Mon Sep 17 00:00:00 2001 From: GLolol Date: Wed, 5 Nov 2014 17:36:05 -0800 Subject: [PATCH] Debug: Fix __init__.py for Python 3 compatibility --- sandbox/Debug/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sandbox/Debug/__init__.py b/sandbox/Debug/__init__.py index 32c60a0be..f6abf963f 100644 --- a/sandbox/Debug/__init__.py +++ b/sandbox/Debug/__init__.py @@ -34,6 +34,7 @@ as well as some other useful commands. import supybot import supybot.world as world +from sys import version_info __version__ = "%%VERSION%%" @@ -45,6 +46,8 @@ __contributors__ = {} from . import config from . import plugin +if version_info[0] >= 3: + from imp import reload reload(plugin) # In case we're being reloaded. if world.testing: