summaryrefslogtreecommitdiffstats
path: root/Doc/library/tempfile.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/tempfile.rst')
-rw-r--r--Doc/library/tempfile.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst
index f25730a..2ea6323 100644
--- a/Doc/library/tempfile.rst
+++ b/Doc/library/tempfile.rst
@@ -181,11 +181,10 @@ The module defines the following user-callable items:
``delete=False`` parameter::
>>> f = NamedTemporaryFile(delete=False)
- >>> f
- <open file '<fdopen>', mode 'w+b' at 0x384698>
>>> f.name
- '/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/tmpG7V1Y0'
- >>> f.write("Hello World!\n")
+ '/tmp/tmptjujjt'
+ >>> f.write(b"Hello World!\n")
+ 13
>>> f.close()
>>> os.unlink(f.name)
>>> os.path.exists(f.name)