mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #18425: Add docstrings to IdleHistory.py. Remove redundant 'history_'
prefix from two attributes and two methods of History class.
This commit is contained in:
parent
7f7b941fdc
commit
0a01ac4300
2 changed files with 35 additions and 15 deletions
|
@ -1261,7 +1261,7 @@ class PyShell(OutputWindow):
|
|||
def resetoutput(self):
|
||||
source = self.text.get("iomark", "end-1c")
|
||||
if self.history:
|
||||
self.history.history_store(source)
|
||||
self.history.store(source)
|
||||
if self.text.get("end-2c") != "\n":
|
||||
self.text.insert("end-1c", "\n")
|
||||
self.text.mark_set("iomark", "end-1c")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue