--- a/mercurial/worker.py Tue Jun 23 22:38:21 2015 -0700
+++ b/mercurial/worker.py Tue Jun 23 22:20:08 2015 -0700
@@ -101,7 +101,7 @@
for p in pids:
try:
os.kill(p, signal.SIGTERM)
- except OSError, err:
+ except OSError as err:
if err.errno != errno.ESRCH:
raise
def waitforworkers():