diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-21 12:16:07 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-21 12:16:07 +0000 |
commit | bda55a1f3cd10f5463228cb882c5b6b67d8937ae (patch) | |
tree | 2a31d93d9646048c51848e52969c9a7fee386da1 /pym/portage/process.py | |
parent | dbe76c6a138288980772d9b4a42280903df2daa9 (diff) | |
download | portage-bda55a1f3cd10f5463228cb882c5b6b67d8937ae.tar.gz portage-bda55a1f3cd10f5463228cb882c5b6b67d8937ae.tar.bz2 portage-bda55a1f3cd10f5463228cb882c5b6b67d8937ae.zip |
Fix all remaining SyntaxErrors with Python 3.
svn path=/main/trunk/; revision=14315
Diffstat (limited to 'pym/portage/process.py')
-rw-r--r-- | pym/portage/process.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage/process.py b/pym/portage/process.py index 9698743f8..2329e6a1b 100644 --- a/pym/portage/process.py +++ b/pym/portage/process.py @@ -118,7 +118,10 @@ def run_exitfuncs(): exc_info = sys.exc_info() if exc_info is not None: - raise exc_info[0], exc_info[1], exc_info[2] + if sys.hexversion >= 0x3000000: + raise exc_info[0](exc_info[1]).with_traceback(exc_info[2]) + else: + exec("raise exc_info[0], exc_info[1], exc_info[2]") atexit.register(run_exitfuncs) |