diff options
-rwxr-xr-x | Lib/pydoc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 9179721..9e55a89 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -1229,8 +1229,8 @@ def pipepager(text, cmd): def tempfilepager(text, cmd): """Page through text by invoking a program on a temporary file.""" import tempfile - (fd, filename) = tempfile.mkstemp() - file = os.fdopen(fd, 'w') + filename = tempfile.mktemp() + file = open(filename, 'w') file.write(text) file.close() try: |