diff options
author | Sarah Owens <sarato@inkylabs.com> | 2012-09-09 15:37:57 -0700 |
---|---|---|
committer | Sarah Owens <sarato@inkylabs.com> | 2012-10-23 21:35:59 -0700 |
commit | a5be53f9c809009e67f217c00b8f30246aacc237 (patch) | |
tree | 7ab0da1fd31968eee882de81df8c9b93ae52fdfb /manifest_xml.py | |
parent | 9ed12c5d9cda1f010bc173b0bc622d59e96b0dd0 (diff) | |
download | git-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.py | 2 |
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: |