Skip to content

Commit eaa7fb3

Browse files
committed
Add notification about the status of the pyeval API
1 parent 33670ce commit eaa7fb3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cloudbot/util/web.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232

3333
@asyncio.coroutine
3434
def pyeval(code, pastebin=True):
35+
raise ValueError("The pyeval API has been removed")
36+
3537
p = {'input': code}
3638
r = requests.post('http://pyeval.appspot.com/exec', data=p)
3739

@@ -222,7 +224,7 @@ def paste(self, data, ext):
222224
@_pastebin('snoonet')
223225
class SnoonetPaste(Pastebin):
224226
def paste(self, data, ext):
225-
227+
226228
params={
227229
'text':data,
228230
'expire':'1d'

plugins/python.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
@hook.command("python", "py")
99
def python(text):
1010
"""<python code> - executes <python code> using eval.appspot.com"""
11+
return "This API has been deprecated and removed."
1112

1213
output = yield from web.pyeval(text, pastebin=False)
1314

0 commit comments

Comments
 (0)