Math: Fix load on Python 3.

This commit is contained in:
Valentin Lorentz 2013-05-08 19:28:16 +00:00
parent b9a46cef21
commit c0c479a77c

View File

@ -42,7 +42,10 @@ import supybot.callbacks as callbacks
from supybot.i18n import PluginInternationalization, internationalizeDocstring
_ = PluginInternationalization('Math')
convertcore = utils.python.universalImport('local.convertcore')
try:
from local import convertcore
except ImportError:
from .local import convertcore
baseArg = ('int', 'base', lambda i: i <= 36)