changeset 5042:51d0f2355215

serverminitopic: ask pytype to disable import-error on a block handling hg 4.5
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 09 Dec 2019 19:59:51 +0700
parents 71cccd216b01
children db341dafdccb
files hgext3rd/serverminitopic.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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'):