]> granicus.if.org Git - python/commitdiff
Copied two versions of the example from the interactive session. Delete
authorSkip Montanaro <skip@pobox.com>
Sun, 11 May 2008 02:59:30 +0000 (02:59 +0000)
committerSkip Montanaro <skip@pobox.com>
Sun, 11 May 2008 02:59:30 +0000 (02:59 +0000)
one.

Doc/library/tempfile.rst

index b5682ae030023bc740a022c26d777e8cf139b63a..5918081143b8801e60c1e91e417468d5a08d828c 100644 (file)
@@ -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
          <open file '<fdopen>', mode 'w+b' at 0x384698>