[Python-checkins] Update docstring of tempfile._RandomNameSequence (GH-6414)

Miss Islington (bot) webhook-mailer at python.org
Sun Apr 8 21:01:57 EDT 2018


https://github.com/python/cpython/commit/d964f51f813282171d4da831e8de0fe003253e9e
commit: d964f51f813282171d4da831e8de0fe003253e9e
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-04-08T18:01:54-07:00
summary:

Update docstring of tempfile._RandomNameSequence (GH-6414)


When bpo-12015 got resolved by increasing the length of the
random string generated by _RandomNameSequence from six to eight
characters, the docstring of the class was not adjusted accordingly.
(cherry picked from commit 9c463ec88ba21764f6fff8e01d6045a932a89438)

Co-authored-by: Wolfgang Maier <wolfgang.maier at biologie.uni-freiburg.de>

files:
M Lib/tempfile.py

diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index 71ecafa53058..e5b7a92fad7b 100644
--- a/Lib/tempfile.py
+++ b/Lib/tempfile.py
@@ -132,7 +132,7 @@ def _sanitize_params(prefix, suffix, dir):
 class _RandomNameSequence:
     """An instance of _RandomNameSequence generates an endless
     sequence of unpredictable strings which can safely be incorporated
-    into file names.  Each string is six characters long.  Multiple
+    into file names.  Each string is eight characters long.  Multiple
     threads can safely use the same instance at the same time.
 
     _RandomNameSequence is an iterator."""



More information about the Python-checkins mailing list