From 946aea2cd5e5a03c2d2d79b8b207cb727b7b0903 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 16 Jun 2006 04:31:06 +0000 Subject: [PATCH] Param name is dir, not directory. Update docstring. Backport candidate --- Lib/tempfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/tempfile.py b/Lib/tempfile.py index dd7e8643e69..2e8cd6d7d52 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.