Message362771
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). |
|
Date |
User |
Action |
Args |
2020-02-27 05:51:38 | wyz23x2 | set | recipients:
+ wyz23x2, ZackerySpytz |
2020-02-27 05:51:38 | wyz23x2 | set | messageid: <1582782698.37.0.155304487387.issue39768@roundup.psfhosted.org> |
2020-02-27 05:51:38 | wyz23x2 | link | issue39768 messages |
2020-02-27 05:51:38 | wyz23x2 | create | |
|