8000 remove what is useless · winpython/winpython@49079a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 49079a0

Browse files
committed
remove what is useless
1 parent 63f0e95 commit 49079a0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

winpython/utils.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -279,12 +279,6 @@ def patch_sourcefile(fname, in_text, out_text, silent_mode=False):
279279
if Path(fname).is_file() and in_text != out_text:
280280
replace_in_file(Path(fname), [(in_text, out_text)])
281281

282-
def _create_temp_dir():
283-
"""Create a temporary directory and remove it at exit"""
284-
tmpdir = tempfile.mkdtemp(prefix='wppm_')
285-
atexit.register(lambda path: shutil.rmtree(path, onexc=onerror), tmpdir)
286-
return tmpdir
287-
288282
def extract_archive(fname, targetdir=None, verbose=False):
289283
"""Extract .zip, .exe or .tar.gz archive to a temporary directory.
290284
Return the temporary directory path"""

0 commit comments

Comments
 (0)
0