From 49079a001a9303220e538ead8b5cd38230a799d0 Mon Sep 17 00:00:00 2001 From: stonebig Date: Wed, 16 Apr 2025 23:06:29 +0200 Subject: [PATCH] remove what is useless --- winpython/utils.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/winpython/utils.py b/winpython/utils.py index c86d202f..7939c3a3 100644 --- a/winpython/utils.py +++ b/winpython/utils.py @@ -279,12 +279,6 @@ def patch_sourcefile(fname, in_text, out_text, silent_mode=False): if Path(fname).is_file() and in_text != out_text: replace_in_file(Path(fname), [(in_text, out_text)]) -def _create_temp_dir(): - """Create a temporary directory and remove it at exit""" - tmpdir = tempfile.mkdtemp(prefix='wppm_') - atexit.register(lambda path: shutil.rmtree(path, onexc=onerror), tmpdir) - return tmpdir - def extract_archive(fname, targetdir=None, verbose=False): """Extract .zip, .exe or .tar.gz archive to a temporary directory. Return the temporary directory path"""