aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/importlib/resources/_common.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/importlib/resources/_common.py')
-rw-r--r--Lib/importlib/resources/_common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/resources/_common.py b/Lib/importlib/resources/_common.py
index 8c0be7ee547..92a37e2c12b 100644
--- a/Lib/importlib/resources/_common.py
+++ b/Lib/importlib/resources/_common.py
@@ -155,5 +155,5 @@ def _write_contents(target, source):
for item in source.iterdir():
_write_contents(child, item)
else:
- child.open('wb').write(source.read_bytes())
+ child.write_bytes(source.read_bytes())
return child