mirror of https://github.com/python/cpython
#6876: fix base class constructor invocation in example.
This commit is contained in:
parent
49bb9b7f0a
commit
b29709adc8
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
:mod:`readline` --- GNU readline interface
|
:mod:`readline` --- GNU readline interface
|
||||||
==========================================
|
==========================================
|
||||||
|
|
||||||
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue