tests/hghave
changeset 28047 863075fd4cd0
parent 26068 05e7f57c74ac
child 28283 544444991c83
--- a/tests/hghave	Wed Feb 10 22:44:28 2016 +0900
+++ b/tests/hghave	Wed Feb 10 22:44:29 2016 +0900
@@ -20,7 +20,7 @@
         check, _ = feature
         try:
             check()
-        except Exception, e:
+        except Exception as e:
             print "feature %s failed:  %s" % (name, e)
             failed += 1
     return failed
@@ -45,7 +45,7 @@
     sys.path.insert(0, path)
     try:
         import hghaveaddon
-    except BaseException, inst:
+    except BaseException as inst:
         sys.stderr.write('failed to import hghaveaddon.py from %r: %s\n'
                          % (path, inst))
         sys.exit(2)