Skip to content

Commit 9a67c26

Browse files
authored
Merge pull request CloudBotIRC#187 from linuxdaemon/gonzobot+py-deprecate
Add notification about the status of the pyeval API
2 parents 33670ce + eaa7fb3 commit 9a67c26

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

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)