mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
bpo-8231: Call idlelib.IdleConf.GetUserCfgDir only once. (#2629)
This commit is contained in:
parent
24f2e19d68
commit
223c7e70e4
4 changed files with 8 additions and 7 deletions
|
@ -117,8 +117,8 @@ class PyShellEditorWindow(EditorWindow):
|
|||
self.text.bind("<<clear-breakpoint-here>>", self.clear_breakpoint_here)
|
||||
self.text.bind("<<open-python-shell>>", self.flist.open_shell)
|
||||
|
||||
self.breakpointPath = os.path.join(idleConf.GetUserCfgDir(),
|
||||
'breakpoints.lst')
|
||||
self.breakpointPath = os.path.join(
|
||||
idleConf.userdir, 'breakpoints.lst')
|
||||
# whenever a file is changed, restore breakpoints
|
||||
def filename_changed_hook(old_hook=self.io.filename_change_hook,
|
||||
self=self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue