mercurial/tags.py
changeset 25660 328739ea70c3
parent 25381 47edeff19139
child 25982 b2f3f185e458
--- a/mercurial/tags.py	Tue Jun 23 22:38:21 2015 -0700
+++ b/mercurial/tags.py	Tue Jun 23 22:20:08 2015 -0700
@@ -120,7 +120,7 @@
     '''Read local tags in repo. Update alltags and tagtypes.'''
     try:
         data = repo.vfs.read("localtags")
-    except IOError, inst:
+    except IOError as inst:
         if inst.errno != errno.ENOENT:
             raise
         return
@@ -545,7 +545,7 @@
                 self._dirtyoffset = None
             finally:
                 f.close()
-        except (IOError, OSError), inst:
+        except (IOError, OSError) as inst:
             repo.ui.log('tagscache',
                         "couldn't write %s: %s\n" % (
                         _fnodescachefile, inst))