]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Comment out the warnings about mktemp(). These are too annoying, and
authorGuido van Rossum <guido@python.org>
Fri, 22 Nov 2002 15:56:29 +0000 (15:56 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 22 Nov 2002 15:56:29 +0000 (15:56 +0000)
often unavoidable.

Lib/tempfile.py

index 97f125250b68e389e883a092d2c782d2db08c57a..0393ba5d3079d5330d518e3ad7985c3df8938784 100644 (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()