##// END OF EJS Templates
typing: disable a few errors calling py3.7+ functions in resourceutil.py...
Matt Harbison -
r47541:7fd36964 stable
parent child Browse files
Show More
@@ -70,12 +70,14 b' try:'
70 70 )
71 71
72 72 def is_resource(package, name):
73 return resources.is_resource(
73 return resources.is_resource( # pytype: disable=module-attr
74 74 pycompat.sysstr(package), encoding.strfromlocal(name)
75 75 )
76 76
77 77 def contents(package):
78 # pytype: disable=module-attr
78 79 for r in resources.contents(pycompat.sysstr(package)):
80 # pytype: enable=module-attr
79 81 yield encoding.strtolocal(r)
80 82
81 83
General Comments 0
You need to be logged in to leave comments. Login now