Skip to content

Commit e5ced1f

Browse files
authored
gh-150885: Remove unused shutil._ensure_directory (GH-150883)
No longer used after gh-146581 (GH-146591).
1 parent f2cab7b commit e5ced1f

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)