Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3f7c47d

Browse filesBrowse files
authored
Merge pull request #1556 from stonebig/master
remove what is useless
2 parents 6d436bd + 49079a0 commit 3f7c47d
Copy full SHA for 3f7c47d

File tree

Expand file treeCollapse file tree

1 file changed

+0
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-6
lines changed

‎winpython/utils.py

Copy file name to clipboardExpand all lines: winpython/utils.py
-6Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.