diff options
author | 2016-05-02 20:51:15 +0100 | |
---|---|---|
committer | 2016-05-02 20:51:15 +0100 | |
commit | 24c61f0ed5599ddf7fa281be8b88fa87959a0841 (patch) | |
tree | 023a8b556f40a3a9c3f3dcb838046850b9362666 /pypy/goal | |
parent | Don't use deprecated except clause syntax (rpython/) (diff) | |
download | pypy-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.py | 8 |
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)))) |