From: Skip Montanaro Date: Sun, 11 May 2008 02:59:30 +0000 (+0000) Subject: Copied two versions of the example from the interactive session. Delete X-Git-Tag: v2.6b1~516 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79964cf64f8779a2eda9f7573388b1d086bda6eb;p=python Copied two versions of the example from the interactive session. Delete one. --- diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst index b5682ae030..5918081143 100644 --- a/Doc/library/tempfile.rst +++ b/Doc/library/tempfile.rst @@ -170,11 +170,6 @@ The module defines the following user-callable functions: :func:`mktemp` usage can be replaced easily with :func:`NamedTemporaryFile`, passing it the `delete=False` parameter:: - >>> f = NamedTemporaryFile(delete=False) - >>> print f.name - >>> f.write("Hello World!\n") - >>> f.close() - >>> os.unlink(f.name) >>> f = NamedTemporaryFile(delete=False) >>> f ', mode 'w+b' at 0x384698>