]> granicus.if.org Git - python/commitdiff
#6876: fix base class constructor invocation in example.
authorGeorg Brandl <georg@python.org>
Wed, 16 Sep 2009 09:24:57 +0000 (09:24 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 16 Sep 2009 09:24:57 +0000 (09:24 +0000)
Doc/library/readline.rst

index 208829928fff680c4d42a18ab35c58b5f8a675dc..685b36f9c531bf02cf8e6d9a097d2a0dc63b1708 100644 (file)
@@ -1,4 +1,3 @@
-
 :mod:`readline` --- GNU readline interface
 ==========================================
 
@@ -221,7 +220,7 @@ support history save/restore. ::
    class HistoryConsole(code.InteractiveConsole):
        def __init__(self, locals=None, filename="<console>",
                     histfile=os.path.expanduser("~/.console-history")):
-           code.InteractiveConsole.__init__(self)
+           code.InteractiveConsole.__init__(self, locals, filename)
            self.init_history(histfile)
 
        def init_history(self, histfile):