]> granicus.if.org Git - python/commitdiff
#10034: import readline in longer example.
authorGeorg Brandl <georg@python.org>
Wed, 6 Oct 2010 05:08:32 +0000 (05:08 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 6 Oct 2010 05:08:32 +0000 (05:08 +0000)
Doc/library/readline.rst

index cb1ae6dc108086bad324e7730f6bc994c542ba5f..c66731715f4c60f226fc80639799a96d825384af 100644 (file)
@@ -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)