From a102ae3426d868b0ef2c1710c89647508018ec36 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 6 Oct 2010 05:08:32 +0000 Subject: #10034: import readline in longer example. --- Doc/library/readline.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc/library/readline.rst b/Doc/library/readline.rst index cb1ae6d..c667317 100644 --- a/Doc/library/readline.rst +++ b/Doc/library/readline.rst @@ -195,6 +195,7 @@ normally be executed automatically during interactive sessions from the user's :envvar:`PYTHONSTARTUP` file. :: import os + import readline histfile = os.path.join(os.environ["HOME"], ".pyhist") try: readline.read_history_file(histfile) -- cgit v0.12