public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:prefix commit in: pym/_emerge/
Date: Thu,  6 Sep 2012 18:14:03 +0000 (UTC)	[thread overview]
Message-ID: <1346955156.3bce5a49dbf9cc04fe8816b8551236b892276d52.grobian@gentoo> (raw)

commit:     3bce5a49dbf9cc04fe8816b8551236b892276d52
Author:     Gregory M. Turner <gmturner007 <AT> ameritech <DOT> net>
AuthorDate: Thu Sep  6 18:12:36 2012 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Sep  6 18:12:36 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=3bce5a49

action_sync: use new python3.2 compatible exception handling style

Signed-off-by: Gregory M. Turner <gmturner007 <AT> ameritech.net>

---
 pym/_emerge/actions.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index 17aed72..ae8df10 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
 


             reply	other threads:[~2012-09-06 18:14 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-06 18:14 Fabian Groffen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-05-25 19:32 [gentoo-commits] proj/portage:prefix commit in: pym/_emerge/ Fabian Groffen
2017-03-24 19:09 Fabian Groffen
2017-03-24 19:09 Fabian Groffen
2017-03-24  7:43 Fabian Groffen
2015-06-02 17:42 Fabian Groffen
2013-03-23 22:00 Fabian Groffen
2013-02-28 20:12 Fabian Groffen
2012-09-30 11:33 Fabian Groffen
2012-02-09  8:05 Fabian Groffen
2011-08-31 18:47 Fabian Groffen
2011-08-29 19:03 Fabian Groffen
2011-08-25 20:26 Fabian Groffen
2011-07-26 17:58 Fabian Groffen
2011-03-13 15:02 Fabian Groffen
2011-02-05 12:25 Fabian Groffen
2011-02-05 12:25 Fabian Groffen
2011-02-05 12:25 Fabian Groffen
2011-02-05 12:25 Fabian Groffen
2011-02-05 12:23 Fabian Groffen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1346955156.3bce5a49dbf9cc04fe8816b8551236b892276d52.grobian@gentoo \
    --to=grobian@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox