--- a/mercurial/utils/resourceutil.py Wed Mar 17 12:06:49 2021 +0100
+++ b/mercurial/utils/resourceutil.py Fri Mar 12 16:55:18 2021 -0500
@@ -70,12 +70,14 @@
)
def is_resource(package, name):
- return resources.is_resource(
+ return resources.is_resource( # pytype: disable=module-attr
pycompat.sysstr(package), encoding.strfromlocal(name)
)
def contents(package):
+ # pytype: disable=module-attr
for r in resources.contents(pycompat.sysstr(package)):
+ # pytype: enable=module-attr
yield encoding.strtolocal(r)