##// END OF EJS Templates
pytype: stop excluding stringutil.py...
Matt Harbison -
r49310:dcdecec4 default
parent child Browse files
Show More
@@ -264,7 +264,11 b' def prettyrepr(o):'
264 q1 = rs.find(b'<', p1 + 1)
264 q1 = rs.find(b'<', p1 + 1)
265 if q1 < 0:
265 if q1 < 0:
266 q1 = len(rs)
266 q1 = len(rs)
267 # pytype: disable=wrong-arg-count
268 # TODO: figure out why pytype doesn't recognize the optional start
269 # arg
267 elif q1 > p1 + 1 and rs.startswith(b'=', q1 - 1):
270 elif q1 > p1 + 1 and rs.startswith(b'=', q1 - 1):
271 # pytype: enable=wrong-arg-count
268 # backtrack for ' field=<'
272 # backtrack for ' field=<'
269 q0 = rs.rfind(b' ', p1 + 1, q1 - 1)
273 q0 = rs.rfind(b' ', p1 + 1, q1 - 1)
270 if q0 < 0:
274 if q0 < 0:
@@ -692,11 +696,11 b' def escapestr(s):'
692 s = bytes(s)
696 s = bytes(s)
693 # call underlying function of s.encode('string_escape') directly for
697 # call underlying function of s.encode('string_escape') directly for
694 # Python 3 compatibility
698 # Python 3 compatibility
695 return codecs.escape_encode(s)[0]
699 return codecs.escape_encode(s)[0] # pytype: disable=module-attr
696
700
697
701
698 def unescapestr(s):
702 def unescapestr(s):
699 return codecs.escape_decode(s)[0]
703 return codecs.escape_decode(s)[0] # pytype: disable=module-attr
700
704
701
705
702 def forcebytestr(obj):
706 def forcebytestr(obj):
@@ -38,7 +38,6 b' mercurial/ui.py # [attribu'
38 mercurial/unionrepo.py # ui, svfs, unfiltered [attribute-error]
38 mercurial/unionrepo.py # ui, svfs, unfiltered [attribute-error]
39 mercurial/util.py # [attribute-error], [wrong-arg-count]
39 mercurial/util.py # [attribute-error], [wrong-arg-count]
40 mercurial/utils/procutil.py # [attribute-error], [module-attr], [bad-return-type]
40 mercurial/utils/procutil.py # [attribute-error], [module-attr], [bad-return-type]
41 mercurial/utils/stringutil.py # [module-attr], [wrong-arg-count]
42 mercurial/utils/memorytop.py # not 3.6 compatible
41 mercurial/utils/memorytop.py # not 3.6 compatible
43 mercurial/win32.py # [not-callable]
42 mercurial/win32.py # [not-callable]
44 mercurial/wireprotoframing.py # [unsupported-operands], [attribute-error], [import-error]
43 mercurial/wireprotoframing.py # [unsupported-operands], [attribute-error], [import-error]
@@ -80,7 +79,6 b' development, but may be a hinderance for'
80 > -x mercurial/ui.py \
79 > -x mercurial/ui.py \
81 > -x mercurial/unionrepo.py \
80 > -x mercurial/unionrepo.py \
82 > -x mercurial/utils/procutil.py \
81 > -x mercurial/utils/procutil.py \
83 > -x mercurial/utils/stringutil.py \
84 > -x mercurial/utils/memorytop.py \
82 > -x mercurial/utils/memorytop.py \
85 > -x mercurial/win32.py \
83 > -x mercurial/win32.py \
86 > -x mercurial/wireprotoframing.py \
84 > -x mercurial/wireprotoframing.py \
General Comments 0
You need to be logged in to leave comments. Login now