summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-06-16 04:31:06 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-06-16 04:31:06 (GMT)
commit946aea2cd5e5a03c2d2d79b8b207cb727b7b0903 (patch)
tree52c104d494b5fb463ec47ab8ddf04dfa16842107
parent217046fb9fbe0984a821fbb188eef496c112dce6 (diff)
downloadcpython-946aea2cd5e5a03c2d2d79b8b207cb727b7b0903.zip
cpython-946aea2cd5e5a03c2d2d79b8b207cb727b7b0903.tar.gz
cpython-946aea2cd5e5a03c2d2d79b8b207cb727b7b0903.tar.bz2
Param name is dir, not directory. Update docstring. Backport candidate
-rw-r--r--Lib/tempfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index dd7e864..2e8cd6d 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.