Commit 9fd6bcbd authored by Guido van Rossum's avatar Guido van Rossum

Comment out the warnings about mktemp(). These are too annoying, and

often unavoidable.
parent fb610be4
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment