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): ...@@ -324,9 +324,9 @@ def mktemp(suffix="", prefix=template, dir=None):
the punch. the punch.
""" """
from warnings import warn as _warn ## from warnings import warn as _warn
_warn("mktemp is a potential security risk to your program", ## _warn("mktemp is a potential security risk to your program",
RuntimeWarning, stacklevel=2) ## RuntimeWarning, stacklevel=2)
if dir is None: if dir is None:
dir = gettempdir() 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