From: Gregory M. Turner Date: Thu, 6 Sep 2012 18:12:36 +0000 (+0200) Subject: action_sync: use new python3.2 compatible exception handling style X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3bce5a49dbf9cc04fe8816b8551236b892276d52;p=portage.git action_sync: use new python3.2 compatible exception handling style Signed-off-by: Gregory M. Turner --- diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index 17aed729a..ae8df10cb 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -2475,7 +2475,7 @@ def action_sync(settings, trees, mtimedb, myopts, myaction): sys.exit(1) try: os.rmdir(myportdir) - except OSError, e: + except OSError as e: if e.errno != errno.ENOENT: sys.stderr.write( "!!! existing '%s' directory; exiting.\n" % myportdir) @@ -2501,7 +2501,7 @@ def action_sync(settings, trees, mtimedb, myopts, myaction): f.write(time.strftime("%a, %d %b %Y %H:%M:%S +0000", time.gmtime())) f.write('\n') f.close() - except IOError, e: + except IOError as e: # too bad, next time better luck! pass