[issue36309] Remove tempfile.mktemp()

2019-09-02 Thread Roundup Robot


Change by Roundup Robot :


--
pull_requests: +15306
pull_request: https://github.com/python/cpython/pull/15640

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36309] Remove tempfile.mktemp()

2019-03-19 Thread Stéphane Wirtel

Change by Stéphane Wirtel :


--
keywords: +patch
pull_requests: +12392
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36309] Remove tempfile.mktemp()

2019-03-19 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

@Serhiy

I have posted on the Python-dev mailing list.

https://mail.python.org/pipermail/python-dev/2019-March/156721.html

--
nosy: +matrixise

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36309] Remove tempfile.mktemp()

2019-03-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Taking to the account the widespread use of mktemp(), I think it needs more 
than one release for deprecation.

This should be discussed on the Python-Dev mailing list first.

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36309] Remove tempfile.mktemp()

2019-03-18 Thread John Hagen


John Hagen  added the comment:

Should it be a DeprecationWarning instead of a RuntimeWarning? (or both since 
it's both deprecated and a security issue?)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36309] Remove tempfile.mktemp()

2019-03-18 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

There was a warning, but it was suppressed by this commit:

commit 44f602dd3b452bbacd3c85b1e5f9873c892b46e3
Author: Guido van Rossum 
Date:   Fri Nov 22 15:56:29 2002 +

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

diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index 97f125250b..0393ba5d30 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()

--
nosy: +pablogsal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36309] Remove tempfile.mktemp()

2019-03-18 Thread Brett Cannon


Brett Cannon  added the comment:

Unfortunately not because there is no warning being raised currently about the 
deprecation (it's only documented as deprecated; 
https://github.com/python/cpython/commit/44f602dd3b452bbacd3c85b1e5f9873c892b46e3).
 A PR raising an appropriate deprecation for at least one release would then 
allow us to consider removing it in subsequent release.

--
nosy: +brett.cannon

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36309] Remove tempfile.mktemp()

2019-03-15 Thread John Hagen


New submission from John Hagen :

tempfile.mktemp has been deprecated since Python 2.3 and has security concerns 
attached to it. Is it time that this is finally removed?

https://docs.python.org/3/library/tempfile.html#tempfile.mktemp

--
components: Library (Lib)
messages: 338046
nosy: John Hagen
priority: normal
severity: normal
status: open
title: Remove tempfile.mktemp()
type: enhancement
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com