From a5be53f9c809009e67f217c00b8f30246aacc237 Mon Sep 17 00:00:00 2001 From: Sarah Owens Date: Sun, 9 Sep 2012 15:37:57 -0700 Subject: 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 --- editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor.py') 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.""" try: rc = subprocess.Popen(args, shell=shell).wait() - except OSError, e: + except OSError as e: raise EditorError('editor failed, %s: %s %s' % (str(e), editor, path)) if rc != 0: -- cgit v1.2.3-54-g00ecf