summaryrefslogtreecommitdiffstats
path: root/git_command.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 /git_command.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 'git_command.py')
-rw-r--r--git_command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git_command.py b/git_command.py
index 82709b91..a40e6c05 100644
--- a/git_command.py
+++ b/git_command.py
@@ -217,7 +217,7 @@ class GitCommand(object):
217 stdin = stdin, 217 stdin = stdin,
218 stdout = stdout, 218 stdout = stdout,
219 stderr = stderr) 219 stderr = stderr)
220 except Exception, e: 220 except Exception as e:
221 raise GitError('%s: %s' % (command[1], e)) 221 raise GitError('%s: %s' % (command[1], e))
222 222
223 if ssh_proxy: 223 if ssh_proxy: