From 19cd24f07f8291eb3dd88830110fde55462a5280 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Tue, 8 Oct 2013 11:44:14 +1300 Subject: [PATCH] renamed a few things --- plugins/factoids.py | 4 ++-- plugins/{pyexec.py => python.py} | 2 +- util/{execute.py => pyexec.py} | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename plugins/{pyexec.py => python.py} (80%) mode change 100755 => 100644 rename util/{execute.py => pyexec.py} (100%) diff --git a/plugins/factoids.py b/plugins/factoids.py index 3bc0410..e1eb244 100755 --- a/plugins/factoids.py +++ b/plugins/factoids.py @@ -1,5 +1,5 @@ # Written by Scaevolus 2010 -from util import hook, http, text, execute +from util import hook, http, text, pyexec import string import re @@ -128,7 +128,7 @@ def factoid(inp, message=None, db=None, bot=None, action=None, conn=None, input= variables = 'input="""{}"""; nick="{}"; chan="{}"; bot_nick="{}";'.format(arguments.replace('"', '\\"'), input.nick, input.chan, input.conn.nick) - result = execute.eval_py(variables + code) + result = pyexec.eval_py(variables + code) else: result = data diff --git a/plugins/pyexec.py b/plugins/python.py old mode 100755 new mode 100644 similarity index 80% rename from plugins/pyexec.py rename to plugins/python.py index 98fecc2..5cdc524 --- a/plugins/pyexec.py +++ b/plugins/python.py @@ -1,5 +1,5 @@ from util import hook -from util.execute import eval_py +from util.pyexec import eval_py @hook.command diff --git a/util/execute.py b/util/pyexec.py similarity index 100% rename from util/execute.py rename to util/pyexec.py