mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Debug: Fix __init__.py for Python 3 compatibility
This commit is contained in:
parent
e925069ae9
commit
1481ac38ad
@ -34,6 +34,7 @@ as well as some other useful commands.
|
|||||||
|
|
||||||
import supybot
|
import supybot
|
||||||
import supybot.world as world
|
import supybot.world as world
|
||||||
|
from sys import version_info
|
||||||
|
|
||||||
__version__ = "%%VERSION%%"
|
__version__ = "%%VERSION%%"
|
||||||
|
|
||||||
@ -45,6 +46,8 @@ __contributors__ = {}
|
|||||||
|
|
||||||
from . import config
|
from . import config
|
||||||
from . import plugin
|
from . import plugin
|
||||||
|
if version_info[0] >= 3:
|
||||||
|
from imp import reload
|
||||||
reload(plugin) # In case we're being reloaded.
|
reload(plugin) # In case we're being reloaded.
|
||||||
|
|
||||||
if world.testing:
|
if world.testing:
|
||||||
|
Loading…
Reference in New Issue
Block a user