mirror of
https://github.com/python/cpython.git
synced 2025-09-17 22:20:23 +00:00
#7092: Fix additional "-3" warnings in the idlelib package, and convert to absolute imports.
This commit is contained in:
parent
f28dd0d1bf
commit
d630c04ab1
37 changed files with 169 additions and 149 deletions
|
@ -2,8 +2,8 @@ import os
|
|||
import sys
|
||||
import imp
|
||||
|
||||
from TreeWidget import TreeItem
|
||||
from ClassBrowser import ClassBrowser, ModuleBrowserTreeItem
|
||||
from idlelib.TreeWidget import TreeItem
|
||||
from idlelib.ClassBrowser import ClassBrowser, ModuleBrowserTreeItem
|
||||
|
||||
class PathBrowser(ClassBrowser):
|
||||
|
||||
|
@ -86,7 +86,7 @@ class DirBrowserTreeItem(TreeItem):
|
|||
return sorted
|
||||
|
||||
def main():
|
||||
import PyShell
|
||||
from idlelib import PyShell
|
||||
PathBrowser(PyShell.flist)
|
||||
if sys.stdin is sys.__stdin__:
|
||||
mainloop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue