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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=79964cf64f8779a2eda9f7573388b1d086bda6eb;p=thirdparty%2FPython%2Fcpython.git 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 b5682ae03002..5918081143b8 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>