]> granicus.if.org Git - python/commitdiff
Update docstring of tempfile._RandomNameSequence (GH-6414)
authorWolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de>
Mon, 9 Apr 2018 00:42:39 +0000 (02:42 +0200)
committerINADA Naoki <methane@users.noreply.github.com>
Mon, 9 Apr 2018 00:42:39 +0000 (09:42 +0900)
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.

Lib/tempfile.py

index 71ecafa5305838c3e9f618f2cb0da4d9086f4ee4..e5b7a92fad7bd39b0903494e8b99ac3abfaef356 100644 (file)
@@ -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."""