From 7ad1ad20b21865fdb4941d1429cde8c696b8c3ae Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Thu, 1 Aug 2013 01:48:50 +1200 Subject: [PATCH] Why the shit is that still there. It does nothing at all --- plugins/util/exec.py | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 plugins/util/exec.py diff --git a/plugins/util/exec.py b/plugins/util/exec.py deleted file mode 100644 index 55a4ef2..0000000 --- a/plugins/util/exec.py +++ /dev/null @@ -1,28 +0,0 @@ -import http -import json, urllib2, sys - - -def haste(data): - URL = "http://paste.dmptr.com" - request = urllib2.Request(URL + "/documents", data) - response = urllib2.urlopen(request) - return("%s/%s" % (URL, json.loads(response.read())['key'])) - - -def execute_eval(code, paste_multiline=True): - while True: - output = http.get("http://eval.appspot.com/eval", statement=code).rstrip('\n') - if output: - break - else: - pass - - if "Traceback (most recent call last):" in output: - status = "Python error: " - else: - status = "Code executed sucessfully: " - - if "\n" in output and paste_multiline: - return status + haste(output) - else: - return output \ No newline at end of file