mercurial/match.py
changeset 25660 328739ea70c3
parent 25579 b76410eed482
child 25662 ff5172c83002
--- a/mercurial/match.py	Tue Jun 23 22:38:21 2015 -0700
+++ b/mercurial/match.py	Tue Jun 23 22:20:08 2015 -0700
@@ -293,9 +293,9 @@
                     for k, p, source in self._normalize(includepats, default,
                                                         root, cwd, auditor):
                         kindpats.append((k, p, source or pat))
-                except util.Abort, inst:
+                except util.Abort as inst:
                     raise util.Abort('%s: %s' % (pat, inst[0]))
-                except IOError, inst:
+                except IOError as inst:
                     if self._warn:
                         self._warn(_("skipping unreadable pattern file "
                                      "'%s': %s\n") % (pat, inst.strerror))