File: except-shadows-builtin-fix.patch

package info (click to toggle)
ipython 0.13.1-2%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 15,752 kB
  • sloc: python: 69,537; makefile: 355; lisp: 272; sh: 80; objc: 37
file content (14 lines) | stat: -rw-r--r-- 486 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: fix except-shadows-builtin
Author: Julian Taylor <jtaylor.debian@googlemail.com>
Bug: https://github.com/ipython/ipython/issues/2056
--- a/IPython/core/magics/osm.py
+++ b/IPython/core/magics/osm.py
@@ -684,7 +684,7 @@
 
         try :
             cont = self.shell.find_user_code(parameter_s)
-        except ValueError, IOError:
+        except (ValueError, IOError):
             print "Error: no such file, variable, URL, history range or macro"
             return