Skip to content

remove what is useless #1556

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions winpython/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down