summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-06 05:08:32 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-06 05:08:32 (GMT)
commita102ae3426d868b0ef2c1710c89647508018ec36 (patch)
treec9308e20085a1264af58ec04d18a3f1ea62f47c6 /Doc
parentb44155483515123a320ae57ec4b7ab237f991362 (diff)
downloadcpython-a102ae3426d868b0ef2c1710c89647508018ec36.zip
cpython-a102ae3426d868b0ef2c1710c89647508018ec36.tar.gz
cpython-a102ae3426d868b0ef2c1710c89647508018ec36.tar.bz2
#10034: import readline in longer example.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/readline.rst1
1 files changed, 1 insertions, 0 deletions
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)