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

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

parent 5b0f761fda9c
......@@ -17,10 +17,11 @@ from . import (
compat,
)
# hg <= 4.5 (b4d85bc122bd)
try:
from mercurial import wireproto
from mercurial import wireproto # pytype: disable=import-error
wireproto.branchmap
except (AttributeError, ImportError): # <= hg-4.5
except (AttributeError, ImportError):
from mercurial import wireprotov1server as wireproto
def _headssummary(orig, pushop, *args, **kwargs):
......
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