From: Terry Jan Reedy Date: Mon, 13 May 2013 19:39:24 +0000 (-0400) Subject: Complete 2 to 3 conversion X-Git-Tag: v3.4.0a1~733^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=01180d4679410d744aacfd3c79e6e4bce9a38e9a;p=thirdparty%2FPython%2Fcpython.git Complete 2 to 3 conversion --- diff --git a/Lib/idlelib/textView.py b/Lib/idlelib/textView.py index 1eaa4649edf4..845d75404aa5 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)