From 99dd6f1506d2b46ff3835448506b49a7c820ee3d Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 26 Jan 2020 20:42:11 +0100 Subject: [PATCH] core/Math: Move the math evaluator to src/utils/. It will be used by ChannelStats. --- plugins/Math/plugin.py | 2 +- plugins/Math/evaluator.py => src/utils/math_evaluator.py | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename plugins/Math/evaluator.py => src/utils/math_evaluator.py (100%) diff --git a/plugins/Math/plugin.py b/plugins/Math/plugin.py index 3d5952487..60b7a79a4 100644 --- a/plugins/Math/plugin.py +++ b/plugins/Math/plugin.py @@ -44,7 +44,7 @@ from supybot.i18n import PluginInternationalization, internationalizeDocstring _ = PluginInternationalization('Math') from .local import convertcore -from .evaluator import safe_eval, InvalidNode, SAFE_ENV +from supybot.utils.math_evaluator import safe_eval, InvalidNode, SAFE_ENV baseArg = ('int', 'base', lambda i: i <= 36) diff --git a/plugins/Math/evaluator.py b/src/utils/math_evaluator.py similarity index 100% rename from plugins/Math/evaluator.py rename to src/utils/math_evaluator.py