mercurial/utils/resourceutil.py
branchstable
changeset 46783 7fd369644c68
parent 45452 dd9e28612468
child 46819 d4ba4d51f85f
--- 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)