Math: Fix load on Python 3.

This commit is contained in:
Valentin Lorentz 2013-05-08 19:28:16 +00:00 committed by Valentin Lorentz
parent 75c3d2fa89
commit f0e49a0402

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)