From 3bce5a49dbf9cc04fe8816b8551236b892276d52 Mon Sep 17 00:00:00 2001 From: "Gregory M. Turner" Date: Thu, 6 Sep 2012 20:12:36 +0200 Subject: [PATCH] action_sync: use new python3.2 compatible exception handling style Signed-off-by: Gregory M. Turner --- pym/_emerge/actions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2