diff options
author | terryjreedy <tjreedy@udel.edu> | 2017-07-08 02:28:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-08 02:28:06 (GMT) |
commit | 223c7e70e48eb6eed4aab3906fbe32b098faafe3 (patch) | |
tree | 84e345911d561e168bc84f647dcddd7b04d07ab6 /Lib/idlelib/pyshell.py | |
parent | 24f2e19d68cc6ca563d2be5944d11d5f55a46918 (diff) | |
download | cpython-223c7e70e48eb6eed4aab3906fbe32b098faafe3.zip cpython-223c7e70e48eb6eed4aab3906fbe32b098faafe3.tar.gz cpython-223c7e70e48eb6eed4aab3906fbe32b098faafe3.tar.bz2 |
bpo-8231: Call idlelib.IdleConf.GetUserCfgDir only once. (#2629)
Diffstat (limited to 'Lib/idlelib/pyshell.py')
-rwxr-xr-x | Lib/idlelib/pyshell.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py index be7bd3d..47df744 100755 --- a/Lib/idlelib/pyshell.py +++ b/Lib/idlelib/pyshell.py @@ -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): |