Commit 448cb74
committed
gh-150882: Remove unused shutil._ensure_directory
Introduced in #8295 alongside shutil.unpack_archive() as a helper that
created the parent directory of each extracted member.
Orphaned by gh-146581 (GH-146591), the ZIP path-traversal fix, which
reworked _unpack_zipfile() to create directories inline and deleted the
last _ensure_directory(targetpath) call site in the same change.
Since then the private helper has had no caller: a word-boundary search
across Lib, Modules, Python, Objects and Include finds zero references
outside its own definition, and a GitHub code search finds no downstream
importers.1 parent 7a468a1 commit 448cb74
1 file changed
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1307 | 1307 | | |
1308 | 1308 | | |
1309 | 1309 | | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
1314 | | - | |
1315 | | - | |
1316 | 1310 | | |
1317 | 1311 | | |
1318 | 1312 | | |
| |||
0 commit comments