From: Guido van Rossum Date: Fri, 22 Nov 2002 15:56:29 +0000 (+0000) Subject: Comment out the warnings about mktemp(). These are too annoying, and X-Git-Tag: v2.3c1~3298 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=44f602dd3b452bbacd3c85b1e5f9873c892b46e3;p=thirdparty%2FPython%2Fcpython.git Comment out the warnings about mktemp(). These are too annoying, and often unavoidable. --- diff --git a/Lib/tempfile.py b/Lib/tempfile.py index 97f125250b68..0393ba5d3079 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py @@ -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()