From bda55a1f3cd10f5463228cb882c5b6b67d8937ae Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Mon, 21 Sep 2009 12:16:07 +0000 Subject: Fix all remaining SyntaxErrors with Python 3. svn path=/main/trunk/; revision=14315 --- pym/portage/process.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pym/portage/process.py') 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) -- cgit v1.2.3-1-g7c22