diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2013-05-13 19:39:24 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2013-05-13 19:39:24 (GMT) |
commit | 01180d4679410d744aacfd3c79e6e4bce9a38e9a (patch) | |
tree | 25c426fd7c51828c7d543d161a902fdf8400097e /Lib | |
parent | 7f987398b7fa8984ab8aa88acff2b7e1d89e3da7 (diff) | |
download | cpython-01180d4679410d744aacfd3c79e6e4bce9a38e9a.zip cpython-01180d4679410d744aacfd3c79e6e4bce9a38e9a.tar.gz cpython-01180d4679410d744aacfd3c79e6e4bce9a38e9a.tar.bz2 |
Complete 2 to 3 conversion
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/idlelib/textView.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |