Skip to content

Replace use of tempfile.mktemp with tempfile.NamedTemporaryFile #456

Merged
aaronayres35 merged 3 commits into
masterfrom
fix/398-replace-tempfile.mktemp
Dec 4, 2020
Merged

Replace use of tempfile.mktemp with tempfile.NamedTemporaryFile #456
aaronayres35 merged 3 commits into
masterfrom
fix/398-replace-tempfile.mktemp

Conversation

@aaronayres35

Copy link
Copy Markdown
Contributor

fixes #398

This PR replaces all uses of tempfile.mktemp as it is deprecated and unsafe.

@codecov-io

codecov-io commented Dec 1, 2020

Copy link
Copy Markdown

Codecov Report

Merging #456 (df4a787) into master (55fc728) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #456   +/-   ##
=======================================
  Coverage   28.96%   28.96%           
=======================================
  Files         206      206           
  Lines       18245    18245           
  Branches     2466     2466           
=======================================
  Hits         5284     5284           
  Misses      12634    12634           
  Partials      327      327           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 55fc728...df4a787. Read the comment docs.

@jwiggins jwiggins left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of these changes seem to ignore the "temporary" part of NamedTemporaryFile

Comment thread examples/kiva/compiled_path.py Outdated
Comment thread examples/kiva/dash.py Outdated
Comment thread examples/kiva/simple2.py

@jwiggins jwiggins left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates

Comment thread examples/kiva/simple2.py Outdated
@aaronayres35 aaronayres35 merged commit af9c914 into master Dec 4, 2020
@jwiggins jwiggins deleted the fix/398-replace-tempfile.mktemp branch December 4, 2020 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use of tempfile.mktemp is deprecated and poses a security risk

4 participants