Commit b3b1df4b authored by Anton Shestakov's avatar Anton Shestakov
Browse files

serverminitopic: ask pytype to disable import-error on a block handling hg 4.5

parent 71cccd216b01
......@@ -23,10 +23,11 @@ from mercurial import (
util,
)
# hg <= 4.5 (b4d85bc122bd)
try:
from mercurial import wireproto
from mercurial import wireproto # pytype: disable=import-error
wireproto.branchmap
except ImportError: # <= hg-4.5
except ImportError:
from mercurial import wireprotov1server as wireproto
if util.safehasattr(registrar, 'configitem'):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment