diff options
author | Guido van Rossum <guido@python.org> | 2002-11-22 15:56:29 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-11-22 15:56:29 (GMT) |
commit | 44f602dd3b452bbacd3c85b1e5f9873c892b46e3 (patch) | |
tree | 31050fc9842d652dac5e8e5f908ccdca7f69a925 /Lib/tempfile.py | |
parent | d0e59fb68d62939477e0f5afb53bd4cc47f8288e (diff) | |
download | cpython-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.py | 6 |
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() |