summaryrefslogtreecommitdiffstats
path: root/manifest_xml.py
diff options
context:
space:
mode:
authorSarah Owens <sarato@inkylabs.com>2012-09-09 15:37:57 -0700
committerSarah Owens <sarato@inkylabs.com>2012-10-23 21:35:59 -0700
commita5be53f9c809009e67f217c00b8f30246aacc237 (patch)
tree7ab0da1fd31968eee882de81df8c9b93ae52fdfb /manifest_xml.py
parent9ed12c5d9cda1f010bc173b0bc622d59e96b0dd0 (diff)
downloadgit-repo-a5be53f9c809009e67f217c00b8f30246aacc237.tar.gz
Use modern Python exception syntax
"except Exception as e" instead of "except Exception, e" This is part of a transition to supporting Python 3. Python >= 2.6 support "as" syntax. Note: this removes Python 2.5 support. Change-Id: I309599f3981bba2b46111c43102bee38ff132803
Diffstat (limited to 'manifest_xml.py')
-rw-r--r--manifest_xml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifest_xml.py b/manifest_xml.py
index 04cabaad..ab842f3f 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -336,7 +336,7 @@ class XmlManifest(object):
336 # tricky. actual parsing implementation may vary. 336 # tricky. actual parsing implementation may vary.
337 except (KeyboardInterrupt, RuntimeError, SystemExit): 337 except (KeyboardInterrupt, RuntimeError, SystemExit):
338 raise 338 raise
339 except Exception, e: 339 except Exception as e:
340 raise ManifestParseError( 340 raise ManifestParseError(
341 "failed parsing included manifest %s: %s", (name, e)) 341 "failed parsing included manifest %s: %s", (name, e))
342 else: 342 else: