summaryrefslogtreecommitdiffstats
path: root/editor.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 /editor.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 'editor.py')
-rw-r--r--editor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor.py b/editor.py
index 62afbb91..489c6cd3 100644
--- a/editor.py
+++ b/editor.py
@@ -91,7 +91,7 @@ least one of these before using this command."""
91 91
92 try: 92 try:
93 rc = subprocess.Popen(args, shell=shell).wait() 93 rc = subprocess.Popen(args, shell=shell).wait()
94 except OSError, e: 94 except OSError as e:
95 raise EditorError('editor failed, %s: %s %s' 95 raise EditorError('editor failed, %s: %s %s'
96 % (str(e), editor, path)) 96 % (str(e), editor, path))
97 if rc != 0: 97 if rc != 0: