diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-20 10:57:44 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-20 10:57:44 +0000 |
commit | 7cb8fb941f09d1ac646be334745f90e16ebd46eb (patch) | |
tree | bad100ba3461c881ebd388d29a6ac859a8962a1a /pym/repoman/utilities.py | |
parent | e70e41916899163fb28a1f5fa24c0ee2b17707f7 (diff) | |
download | portage-7cb8fb941f09d1ac646be334745f90e16ebd46eb.tar.gz portage-7cb8fb941f09d1ac646be334745f90e16ebd46eb.tar.bz2 portage-7cb8fb941f09d1ac646be334745f90e16ebd46eb.zip |
Update syntax of 'except' statements for compatibility with Python 3.
(2to3-3.1 -f except -nw ${FILES})
svn path=/main/trunk/; revision=14289
Diffstat (limited to 'pym/repoman/utilities.py')
-rw-r--r-- | pym/repoman/utilities.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py index c3665d9d8..18480294c 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -117,7 +117,7 @@ def parse_metadata_use(mylines, uselist=None): uselist = [] try: metadatadom = minidom.parse(mylines) - except ExpatError, e: + except ExpatError as e: raise exception.ParseError("metadata.xml: %s" % (e,)) try: @@ -289,7 +289,7 @@ def get_commit_message_with_editor(editor, message=None): encoding=_encodings['fs'], errors='strict'), mode='r', encoding=_encodings['content'], errors='replace' ).readlines() - except OSError, e: + except OSError as e: if e.errno != errno.ENOENT: raise del e |