summaryrefslogtreecommitdiffstats
path: root/Lib/tempfile.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-11-22 15:56:29 (GMT)
committerGuido van Rossum <guido@python.org>2002-11-22 15:56:29 (GMT)
commit44f602dd3b452bbacd3c85b1e5f9873c892b46e3 (patch)
tree31050fc9842d652dac5e8e5f908ccdca7f69a925 /Lib/tempfile.py
parentd0e59fb68d62939477e0f5afb53bd4cc47f8288e (diff)
downloadcpython-44f602dd3b452bbacd3c85b1e5f9873c892b46e3.zip
cpython-44f602dd3b452bbacd3c85b1e5f9873c892b46e3.tar.gz
cpython-44f602dd3b452bbacd3c85b1e5f9873c892b46e3.tar.bz2
Comment out the warnings about mktemp(). These are too annoying, and
often unavoidable.
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r--Lib/tempfile.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index 97f1252..0393ba5 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()