We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2cab7b commit e5ced1fCopy full SHA for e5ced1f
1 file changed
Lib/shutil.py
@@ -1307,12 +1307,6 @@ def unregister_unpack_format(name):
1307
"""Removes the pack format from the registry."""
1308
del _UNPACK_FORMATS[name]
1309
1310
-def _ensure_directory(path):
1311
- """Ensure that the parent directory of `path` exists"""
1312
- dirname = os.path.dirname(path)
1313
- if not os.path.isdir(dirname):
1314
- os.makedirs(dirname)
1315
-
1316
def _unpack_zipfile(filename, extract_dir):
1317
"""Unpack zip `filename` to `extract_dir`
1318
"""
0 commit comments