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
|
@ -5,8 +5,8 @@ import tkMessageBox
|
|||
|
||||
class FileList:
|
||||
|
||||
from EditorWindow import EditorWindow # class variable, may be overridden
|
||||
# e.g. by PyShellFileList
|
||||
# N.B. this import overridden in PyShellFileList.
|
||||
from idlelib.EditorWindow import EditorWindow
|
||||
|
||||
def __init__(self, root):
|
||||
self.root = root
|
||||
|
@ -106,7 +106,7 @@ class FileList:
|
|||
|
||||
|
||||
def _test():
|
||||
from EditorWindow import fixwordbreaks
|
||||
from idlelib.EditorWindow import fixwordbreaks
|
||||
import sys
|
||||
root = Tk()
|
||||
fixwordbreaks(root)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue