serverminitopic: ask pytype to disable import-error on a block handling hg 4.5
authorAnton Shestakov <av6@dwimlabs.net>
Mon, 09 Dec 2019 19:59:51 +0700
changeset 5042 51d0f2355215
parent 5041 71cccd216b01
child 5043 db341dafdccb
serverminitopic: ask pytype to disable import-error on a block handling hg 4.5
hgext3rd/serverminitopic.py
--- a/hgext3rd/serverminitopic.py	Mon Dec 09 19:58:58 2019 +0700
+++ b/hgext3rd/serverminitopic.py	Mon Dec 09 19:59:51 2019 +0700
@@ -23,10 +23,11 @@
     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'):