# HG changeset patch # User Anton Shestakov # Date 1575896338 -25200 # Node ID 71cccd216b01d9cc3769745aea099972621eb682 # Parent 5b0f761fda9ca018ba871a1c6f518a21f348a724 topic: ask pytype to disable import-error on a block handling hg 4.5 diff -r 5b0f761fda9c -r 71cccd216b01 hgext3rd/topic/discovery.py --- a/hgext3rd/topic/discovery.py Mon Dec 09 16:40:53 2019 +0700 +++ b/hgext3rd/topic/discovery.py Mon Dec 09 19:58:58 2019 +0700 @@ -17,10 +17,11 @@ 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):