diff options
Diffstat (limited to 'pym/portage/xpak.py')
-rw-r--r-- | pym/portage/xpak.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pym/portage/xpak.py b/pym/portage/xpak.py index 15a432f51..54d2eb880 100644 --- a/pym/portage/xpak.py +++ b/pym/portage/xpak.py @@ -232,7 +232,7 @@ def xpand(myid,mydest): mydata=myid[1] try: origdir=os.getcwd() - except SystemExit, e: + except SystemExit as e: raise except: os.chdir("/") @@ -313,7 +313,7 @@ class tbz2(object): # thus the above sanity check. try: shutil.rmtree(datadir) - except OSError, oe: + except OSError as oe: if oe.errno == errno.ENOENT: pass else: @@ -359,7 +359,7 @@ class tbz2(object): self.datapos=a.tell() a.close() return 2 - except SystemExit, e: + except SystemExit as e: raise except: return 0 @@ -397,7 +397,7 @@ class tbz2(object): return 0 try: origdir=os.getcwd() - except SystemExit, e: + except SystemExit as e: raise except: os.chdir("/") |