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 /subcmds/init.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 'subcmds/init.py')
-rw-r--r-- | subcmds/init.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index 007667e2..b6b98076 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
@@ -207,7 +207,7 @@ to update the working directory files. | |||
207 | 207 | ||
208 | try: | 208 | try: |
209 | self.manifest.Link(name) | 209 | self.manifest.Link(name) |
210 | except ManifestParseError, e: | 210 | except ManifestParseError as e: |
211 | print >>sys.stderr, "fatal: manifest '%s' not available" % name | 211 | print >>sys.stderr, "fatal: manifest '%s' not available" % name |
212 | print >>sys.stderr, 'fatal: %s' % str(e) | 212 | print >>sys.stderr, 'fatal: %s' % str(e) |
213 | sys.exit(1) | 213 | sys.exit(1) |