Author: Alexander Hesse <[email protected]>
Branch: split-rpython
Changeset: r59977:bc67ae89d391
Date: 2013-01-11 22:08 +0100
http://bitbucket.org/pypy/pypy/changeset/bc67ae89d391/

Log:    Fixed interp_struct

diff --git a/pypy/module/struct/interp_struct.py 
b/pypy/module/struct/interp_struct.py
--- a/pypy/module/struct/interp_struct.py
+++ b/pypy/module/struct/interp_struct.py
@@ -15,7 +15,7 @@
     try:
         fmtiter.interpret(format)
     except StructOverflowError, e:
-        raise OperationError(space.w_OverflowError, space.wrap(self.msg))
+        raise OperationError(space.w_OverflowError, space.wrap(e.msg))
     except StructError, e:
         w_module = space.getbuiltinmodule('struct')
         w_error = space.getattr(w_module, space.wrap('error'))
@@ -32,7 +32,7 @@
     try:
         fmtiter.interpret(format)
     except StructOverflowError, e:
-        raise OperationError(space.w_OverflowError, space.wrap(self.msg))
+        raise OperationError(space.w_OverflowError, space.wrap(e.msg))
     except StructError, e:
         w_module = space.getbuiltinmodule('struct')
         w_error = space.getattr(w_module, space.wrap('error'))
@@ -46,7 +46,7 @@
     try:
         fmtiter.interpret(format)
     except StructOverflowError, e:
-        raise OperationError(space.w_OverflowError, space.wrap(self.msg))
+        raise OperationError(space.w_OverflowError, space.wrap(e.msg))
     except StructError, e:
         w_module = space.getbuiltinmodule('struct')
         w_error = space.getattr(w_module, space.wrap('error'))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to