From 01180d4679410d744aacfd3c79e6e4bce9a38e9a Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Mon, 13 May 2013 15:39:24 -0400 Subject: Complete 2 to 3 conversion --- Lib/idlelib/textView.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/idlelib/textView.py b/Lib/idlelib/textView.py index 1eaa464..845d754 100644 --- a/Lib/idlelib/textView.py +++ b/Lib/idlelib/textView.py @@ -80,7 +80,7 @@ if __name__ == '__main__': root=Tk() root.title('textView test') filename = './textView.py' - text = file(filename, 'r').read() + text = open(filename, 'r').read() btn1 = Button(root, text='view_text', command=lambda:view_text(root, 'view_text', text)) btn1.pack(side=LEFT) -- cgit v0.12