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

often unavoidable.
This commit is contained in:
Guido van Rossum 2002-11-22 15:56:29 +00:00
parent d0e59fb68d
commit 44f602dd3b
1 changed files with 3 additions and 3 deletions

View File

@ -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()