Skip to content

Commit 77b5cd3

Browse files
gaborbernatphilthompson10
authored andcommitted
pythongh-150885: Remove unused shutil._ensure_directory (pythonGH-150883)
No longer used after pythongh-146581 (pythonGH-146591).
1 parent ed14238 commit 77b5cd3

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

Lib/shutil.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,12 +1307,6 @@ def unregister_unpack_format(name):
13071307
"""Removes the pack format from the registry."""
13081308
del _UNPACK_FORMATS[name]
13091309

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-
13161310
def _unpack_zipfile(filename, extract_dir):
13171311
"""Unpack zip `filename` to `extract_dir`
13181312
"""

0 commit comments

Comments
 (0)