##// END OF EJS Templates
typing: suppress a few pyi-errors with more recent pytype...
Matt Harbison -
r50284:093e5c27 default
parent child Browse files
Show More
@@ -18,12 +18,15 b' from .. import ('
18
18
19 from ..utils import procutil
19 from ..utils import procutil
20
20
21 # pytype: disable=pyi-error
21 from . import (
22 from . import (
22 hgweb_mod,
23 hgweb_mod,
23 hgwebdir_mod,
24 hgwebdir_mod,
24 server,
25 server,
25 )
26 )
26
27
28 # pytype: enable=pyi-error
29
27
30
28 def hgweb(config, name=None, baseui=None):
31 def hgweb(config, name=None, baseui=None):
29 """create an hgweb wsgi object
32 """create an hgweb wsgi object
@@ -1150,7 +1150,7 b' class svnsubrepo(abstractsubrepo):'
1150 # commit revision so we can compare the subrepo state with
1150 # commit revision so we can compare the subrepo state with
1151 # both. We used to store the working directory one.
1151 # both. We used to store the working directory one.
1152 output, err = self._svncommand([b'info', b'--xml'])
1152 output, err = self._svncommand([b'info', b'--xml'])
1153 doc = xml.dom.minidom.parseString(output)
1153 doc = xml.dom.minidom.parseString(output) # pytype: disable=pyi-error
1154 entries = doc.getElementsByTagName('entry')
1154 entries = doc.getElementsByTagName('entry')
1155 lastrev, rev = b'0', b'0'
1155 lastrev, rev = b'0', b'0'
1156 if entries:
1156 if entries:
@@ -1174,7 +1174,7 b' class svnsubrepo(abstractsubrepo):'
1174 """
1174 """
1175 output, err = self._svncommand([b'status', b'--xml'])
1175 output, err = self._svncommand([b'status', b'--xml'])
1176 externals, changes, missing = [], [], []
1176 externals, changes, missing = [], [], []
1177 doc = xml.dom.minidom.parseString(output)
1177 doc = xml.dom.minidom.parseString(output) # pytype: disable=pyi-error
1178 for e in doc.getElementsByTagName('entry'):
1178 for e in doc.getElementsByTagName('entry'):
1179 s = e.getElementsByTagName('wc-status')
1179 s = e.getElementsByTagName('wc-status')
1180 if not s:
1180 if not s:
@@ -1319,7 +1319,7 b' class svnsubrepo(abstractsubrepo):'
1319 @annotatesubrepoerror
1319 @annotatesubrepoerror
1320 def files(self):
1320 def files(self):
1321 output = self._svncommand([b'list', b'--recursive', b'--xml'])[0]
1321 output = self._svncommand([b'list', b'--recursive', b'--xml'])[0]
1322 doc = xml.dom.minidom.parseString(output)
1322 doc = xml.dom.minidom.parseString(output) # pytype: disable=pyi-error
1323 paths = []
1323 paths = []
1324 for e in doc.getElementsByTagName('entry'):
1324 for e in doc.getElementsByTagName('entry'):
1325 kind = pycompat.bytestr(e.getAttribute('kind'))
1325 kind = pycompat.bytestr(e.getAttribute('kind'))
General Comments 0
You need to be logged in to leave comments. Login now