]> granicus.if.org Git - python/commitdiff
mkstemp(): Repaired error in docstring (the sense of the 'binary' flag
authorTim Peters <tim.peters@gmail.com>
Wed, 14 Aug 2002 00:49:50 +0000 (00:49 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 14 Aug 2002 00:49:50 +0000 (00:49 +0000)
was reversed).

Lib/tempfile.py

index 24b78bf54ff92f949c55318420da4d6c37ec7907..fba940768830d87b358269321c6ee6deca5dae83 100644 (file)
@@ -265,8 +265,8 @@ def mkstemp(suffix="", prefix=template, dir=gettempdir(), binary=True):
     If 'dir' is specified, the file will be created in that directory,
     otherwise a default directory is used.
 
-    If 'binary' is specified and false, the file is opened in binary
-    mode.  Otherwise, the file is opened in text mode.  On some
+    If 'binary' is specified and false, the file is opened in text
+    mode.  Otherwise, the file is opened in binary mode.  On some
     operating systems, this makes no difference.
 
     The file is readable and writable only by the creating user ID.