Show More
@@ -40,11 +40,11 b' try:' | |||||
40 | import importlib |
|
40 | import importlib | |
41 |
|
41 | |||
42 | # Force loading of the resources module |
|
42 | # Force loading of the resources module | |
43 | importlib.resources.open_binary |
|
43 | importlib.resources.open_binary # pytype: disable=module-attr | |
44 |
|
44 | |||
45 | def open_resource(package, name): |
|
45 | def open_resource(package, name): | |
46 | package = b'mercurial.' + package |
|
46 | package = b'mercurial.' + package | |
47 | return importlib.resources.open_binary( |
|
47 | return importlib.resources.open_binary( # pytype: disable=module-attr | |
48 | pycompat.sysstr(package), pycompat.sysstr(name) |
|
48 | pycompat.sysstr(package), pycompat.sysstr(name) | |
49 | ) |
|
49 | ) | |
50 |
|
50 |
General Comments 0
You need to be logged in to leave comments.
Login now