File: restore_sys_argv.patch

package info (click to toggle)
python-scipy 0.10.1%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 42,232 kB
  • sloc: cpp: 224,773; ansic: 103,496; python: 85,210; fortran: 79,130; makefile: 272; sh: 43
file content (17 lines) | stat: -rw-r--r-- 695 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: restore sys.argv in case of exception
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500814

Index: python-scipy-0.10.1+dfsg1/scipy/weave/build_tools.py
===================================================================
--- python-scipy-0.10.1+dfsg1.orig/scipy/weave/build_tools.py	2012-04-19 16:30:03.073017007 -0400
+++ python-scipy-0.10.1+dfsg1/scipy/weave/build_tools.py	2012-04-19 16:30:12.712727587 -0400
@@ -283,6 +283,9 @@
         configure_python_path(build_dir)
     except SyntaxError: #TypeError:
         success = 0
+    except Exception, e:
+        restore_sys_argv()
+        raise e
 
     # restore argv after our trick...
     restore_sys_argv()