From 241622990e66d80240a92c4b64946223e3b52f95 Mon Sep 17 00:00:00 2001 From: Krenair Date: Sat, 1 Dec 2012 17:45:27 +0000 Subject: [PATCH] Follow up I92b8637c: Fix Python 3 compatibility. This should fix the error I get when trying to update from git-review 1.19: alex@alex:/var/www/MediaWiki/Git/core$ sudo pip install -U git-review [sudo] password for alex: Downloading/unpacking git-review from http://pypi.python.org/packages/source/g/git-review/git-review-1.20.tar.gz#md5=d8446f99fd4ef2cc8090bef2c9eac294 Downloading git-review-1.20.tar.gz Running setup.py egg_info for package git-review Traceback (most recent call last): File "", line 16, in File "/tmp/pip-build/git-review/setup.py", line 25, in exec(open("git-review").read()) File "", line 864 except CommandFailed, e: ^ SyntaxError: invalid syntax [...] Change-Id: I1aa43f7bb14bbf68c3a63f2225fb91d1ad53124b --- git-review | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-review b/git-review index d252ca2..a635e49 100755 --- a/git-review +++ b/git-review @@ -861,6 +861,6 @@ def main(): if __name__ == "__main__": try: main() - except CommandFailed, e: + except CommandFailed as e: print(e) sys.exit(e.EXIT_CODE)