Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 01180d4

Browse files
committed
Complete 2 to 3 conversion
1 parent 7f98739 commit 01180d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/idlelib/textView.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def view_file(parent, title, filename, encoding=None, modal=True):
8080
root=Tk()
8181
root.title('textView test')
8282
filename = './textView.py'
83-
text = file(filename, 'r').read()
83+
text = open(filename, 'r').read()
8484
btn1 = Button(root, text='view_text',
8585
command=lambda:view_text(root, 'view_text', text))
8686
btn1.pack(side=LEFT)

0 commit comments

Comments
 (0)