summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/pathbrowser.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2017-11-23 01:05:35 (GMT)
committerGitHub <noreply@github.com>2017-11-23 01:05:35 (GMT)
commitae3c5c7b9e5e5ba53213e12cc100e32415d5762c (patch)
tree9df879514568b11a8eee141fbe26d859582f9f99 /Lib/idlelib/pathbrowser.py
parentd7ed48c2b8c11bb99da3661e8fe0bf5ae7f6b8d7 (diff)
downloadcpython-ae3c5c7b9e5e5ba53213e12cc100e32415d5762c.zip
cpython-ae3c5c7b9e5e5ba53213e12cc100e32415d5762c.tar.gz
cpython-ae3c5c7b9e5e5ba53213e12cc100e32415d5762c.tar.bz2
[3.6] bpo-32100: IDLE: Fix pathbrowser errors; improve tests. (GH-4484) (#4512)
Patch mostly by Cheryl Sabella. (cherry picked from commit 20d48a44a54ed5e4a6df00e89ae27e3983128265)
Diffstat (limited to 'Lib/idlelib/pathbrowser.py')
-rw-r--r--Lib/idlelib/pathbrowser.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/idlelib/pathbrowser.py b/Lib/idlelib/pathbrowser.py
index c0aa2a1..c61ae0f 100644
--- a/Lib/idlelib/pathbrowser.py
+++ b/Lib/idlelib/pathbrowser.py
@@ -9,13 +9,14 @@ from idlelib.tree import TreeItem
class PathBrowser(ModuleBrowser):
- def __init__(self, flist, *, _htest=False, _utest=False):
+ def __init__(self, master, *, _htest=False, _utest=False):
"""
_htest - bool, change box location when running htest
"""
+ self.master = master
self._htest = _htest
self._utest = _utest
- self.init(flist)
+ self.init()
def settitle(self):
"Set window titles."
@@ -100,8 +101,7 @@ class DirBrowserTreeItem(TreeItem):
def _path_browser(parent): # htest #
- flist = PyShellFileList(parent)
- PathBrowser(flist, _htest=True)
+ PathBrowser(parent, _htest=True)
parent.mainloop()
if __name__ == "__main__":