summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2013-05-13 19:39:24 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2013-05-13 19:39:24 (GMT)
commit01180d4679410d744aacfd3c79e6e4bce9a38e9a (patch)
tree25c426fd7c51828c7d543d161a902fdf8400097e /Lib
parent7f987398b7fa8984ab8aa88acff2b7e1d89e3da7 (diff)
downloadcpython-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.py2
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)