This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author wyz23x2
Recipients ZackerySpytz, wyz23x2
Date 2020-02-27.05:51:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582782698.37.0.155304487387.issue39768@roundup.psfhosted.org>
In-reply-to
Content
You could add a check that does this:
(a)
from tempfile import mktemp
with open(mktemp()) as f:
    # do something...

## No Warnings
(b)
from tempfile import mktemp
path = mktemp()
# do something...
with open(mktemp()) as f:
    # do something...

## RuntimeWarning: mktemp() is unsafe. Use NamedTemporaryFile(delete=False).
History
Date User Action Args
2020-02-27 05:51:38wyz23x2setrecipients: + wyz23x2, ZackerySpytz
2020-02-27 05:51:38wyz23x2setmessageid: <1582782698.37.0.155304487387.issue39768@roundup.psfhosted.org>
2020-02-27 05:51:38wyz23x2linkissue39768 messages
2020-02-27 05:51:38wyz23x2create