We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63b07a2 commit 6ef79c3Copy full SHA for 6ef79c3
bpython/repl.py
@@ -24,6 +24,7 @@
24
from __future__ import with_statement
25
import code
26
import codecs
27
+import errno
28
import inspect
29
import os
30
import pydoc
@@ -822,7 +823,7 @@ def do_pastebin_helper(self, s):
822
823
helper.stdin.write(s.encode())
824
paste_url = helper.communicate()[0].decode().strip()
825
except OSError, e:
- if e.errno == 2:
826
+ if e.errno == errno.ENOENT:
827
self.interact.notify('Upload failed: Helper program not found.')
828
else:
829
self.interact.notify('Upload failed: Helper program could not be run.')
0 commit comments