mercurial/merge.py
changeset 25660 328739ea70c3
parent 25151 6eb4bdad198f
child 25754 19cc443aac34
--- a/mercurial/merge.py	Tue Jun 23 22:38:21 2015 -0700
+++ b/mercurial/merge.py	Tue Jun 23 22:20:08 2015 -0700
@@ -145,7 +145,7 @@
                 else:
                     records.append(('F', l[:-1]))
             f.close()
-        except IOError, err:
+        except IOError as err:
             if err.errno != errno.ENOENT:
                 raise
         return records
@@ -170,7 +170,7 @@
                 off += length
                 records.append((rtype, record))
             f.close()
-        except IOError, err:
+        except IOError as err:
             if err.errno != errno.ENOENT:
                 raise
         return records
@@ -660,7 +660,7 @@
         audit(f)
         try:
             unlink(wjoin(f), ignoremissing=True)
-        except OSError, inst:
+        except OSError as inst:
             repo.ui.warn(_("update failed to remove %s: %s!\n") %
                          (f, inst.strerror))
         if i == 100: