mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Comment out the warnings about mktemp(). These are too annoying, and
often unavoidable.
This commit is contained in:
parent
d0e59fb68d
commit
44f602dd3b
1 changed files with 3 additions and 3 deletions
|
|
@ -324,9 +324,9 @@ def mktemp(suffix="", prefix=template, dir=None):
|
|||
the punch.
|
||||
"""
|
||||
|
||||
from warnings import warn as _warn
|
||||
_warn("mktemp is a potential security risk to your program",
|
||||
RuntimeWarning, stacklevel=2)
|
||||
## from warnings import warn as _warn
|
||||
## _warn("mktemp is a potential security risk to your program",
|
||||
## RuntimeWarning, stacklevel=2)
|
||||
|
||||
if dir is None:
|
||||
dir = gettempdir()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue