Skip to content
Snippets Groups Projects
Commit 83c847b0 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

gitdirstate: eliminate naked except clause in compatibility code

Tested with Mercurial 2.8.2, 2.9.2, bd98d073a34f (stable) and
7d24a41200d3 (default).
parent 67b27ec0
No related branches found
Tags 0.10.1
No related merge requests found
......@@ -8,7 +8,7 @@
from mercurial import ignore
ignore.readpats
ignoremod = True
except:
except ImportError:
# ignore module was removed in Mercurial 3.5
ignoremod = False
from mercurial import match as matchmod
......@@ -18,7 +18,7 @@
try:
from mercurial import pathutil
pathutil.pathauditor
except:
except ImportError:
pathutil = scmutil
from mercurial import util
from mercurial.i18n import _
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment