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
|
@ -1,8 +1,8 @@
|
|||
from Tkinter import *
|
||||
from EditorWindow import EditorWindow
|
||||
from idlelib.EditorWindow import EditorWindow
|
||||
import re
|
||||
import tkMessageBox
|
||||
import IOBinding
|
||||
from idlelib import IOBinding
|
||||
|
||||
class OutputWindow(EditorWindow):
|
||||
|
||||
|
@ -47,8 +47,9 @@ class OutputWindow(EditorWindow):
|
|||
self.text.see(mark)
|
||||
self.text.update()
|
||||
|
||||
def writelines(self, l):
|
||||
map(self.write, l)
|
||||
def writelines(self, lines):
|
||||
for line in lines:
|
||||
self.write(line)
|
||||
|
||||
def flush(self):
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue