Kaydet (Commit) b29709ad authored tarafından Georg Brandl's avatar Georg Brandl

#6876: fix base class constructor invocation in example.

üst 49bb9b7f
:mod:`readline` --- GNU readline interface :mod:`readline` --- GNU readline interface
========================================== ==========================================
...@@ -221,7 +220,7 @@ support history save/restore. :: ...@@ -221,7 +220,7 @@ support history save/restore. ::
class HistoryConsole(code.InteractiveConsole): class HistoryConsole(code.InteractiveConsole):
def __init__(self, locals=None, filename="<console>", def __init__(self, locals=None, filename="<console>",
histfile=os.path.expanduser("~/.console-history")): histfile=os.path.expanduser("~/.console-history")):
code.InteractiveConsole.__init__(self) code.InteractiveConsole.__init__(self, locals, filename)
self.init_history(histfile) self.init_history(histfile)
def init_history(self, histfile): def init_history(self, histfile):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment