From: Neal Norwitz Date: Fri, 16 Jun 2006 04:31:06 +0000 (+0000) Subject: Param name is dir, not directory. Update docstring. Backport candidate X-Git-Tag: v2.5b1~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=946aea2cd5e5a03c2d2d79b8b207cb727b7b0903;p=thirdparty%2FPython%2Fcpython.git Param name is dir, not directory. Update docstring. Backport candidate --- diff --git a/Lib/tempfile.py b/Lib/tempfile.py index dd7e8643e694..2e8cd6d7d52c 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py @@ -446,7 +446,7 @@ else: prefix=template, dir=None): """Create and return a temporary file. Arguments: - 'prefix', 'suffix', 'directory' -- as for mkstemp. + 'prefix', 'suffix', 'dir' -- as for mkstemp. 'mode' -- the mode argument to os.fdopen (default "w+b"). 'bufsize' -- the buffer size argument to os.fdopen (default -1). The file is created as mkstemp() would do it.