aboutsummaryrefslogtreecommitdiff
path: root/pypy/goal
diff options
context:
space:
mode:
authorRonan Lamy <ronan.lamy@gmail.com>2016-05-02 20:51:15 +0100
committerRonan Lamy <ronan.lamy@gmail.com>2016-05-02 20:51:15 +0100
commit24c61f0ed5599ddf7fa281be8b88fa87959a0841 (patch)
tree023a8b556f40a3a9c3f3dcb838046850b9362666 /pypy/goal
parentDon't use deprecated except clause syntax (rpython/) (diff)
downloadpypy-24c61f0ed5599ddf7fa281be8b88fa87959a0841.tar.gz
pypy-24c61f0ed5599ddf7fa281be8b88fa87959a0841.tar.bz2
pypy-24c61f0ed5599ddf7fa281be8b88fa87959a0841.zip
Don't use deprecated except clause syntax (pypy/)
Diffstat (limited to 'pypy/goal')
-rw-r--r--pypy/goal/targetpypystandalone.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pypy/goal/targetpypystandalone.py b/pypy/goal/targetpypystandalone.py
index 365167510a..999da5c930 100644
--- a/pypy/goal/targetpypystandalone.py
+++ b/pypy/goal/targetpypystandalone.py
@@ -63,7 +63,7 @@ def create_entry_point(space, w_dict):
## from pypy.interpreter import main, interactive, error
## con = interactive.PyPyConsole(space)
## con.interact()
- except OperationError, e:
+ except OperationError as e:
debug("OperationError:")
debug(" operror-type: " + e.w_type.getname(space))
debug(" operror-value: " + space.str_w(space.str(e.get_w_value(space))))
@@ -71,7 +71,7 @@ def create_entry_point(space, w_dict):
finally:
try:
space.finish()
- except OperationError, e:
+ except OperationError as e:
debug("OperationError:")
debug(" operror-type: " + e.w_type.getname(space))
debug(" operror-value: " + space.str_w(space.str(e.get_w_value(space))))
@@ -115,7 +115,7 @@ def create_entry_point(space, w_dict):
space.wrap('__import__'))
space.call_function(import_, space.wrap('site'))
return rffi.cast(rffi.INT, 0)
- except OperationError, e:
+ except OperationError as e:
if verbose:
debug("OperationError:")
debug(" operror-type: " + e.w_type.getname(space))
@@ -167,7 +167,7 @@ def create_entry_point(space, w_dict):
sys._pypy_execute_source.append(glob)
exec stmt in glob
""")
- except OperationError, e:
+ except OperationError as e:
debug("OperationError:")
debug(" operror-type: " + e.w_type.getname(space))
debug(" operror-value: " + space.str_w(space.str(e.get_w_value(space))))