##// 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 def is_resource(package, name):
72 def is_resource(package, name):
73 return resources.is_resource(
73 return resources.is_resource( # pytype: disable=module-attr
74 pycompat.sysstr(package), encoding.strfromlocal(name)
74 pycompat.sysstr(package), encoding.strfromlocal(name)
75 )
75 )
76
76
77 def contents(package):
77 def contents(package):
78 # pytype: disable=module-attr
78 for r in resources.contents(pycompat.sysstr(package)):
79 for r in resources.contents(pycompat.sysstr(package)):
80 # pytype: enable=module-attr
79 yield encoding.strtolocal(r)
81 yield encoding.strtolocal(r)
80
82
81
83
General Comments 0
You need to be logged in to leave comments. Login now