summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2013-05-13 19:44:30 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2013-05-13 19:44:30 (GMT)
commit9c60f66dc252079f01b6af9f7810a5e9758b0c66 (patch)
tree82f7301054fd05e269a874a6c6ba91b71ea367a9 /Lib
parent5f1879190205088a8dc23acccce142449de6a78f (diff)
parent01180d4679410d744aacfd3c79e6e4bce9a38e9a (diff)
downloadcpython-9c60f66dc252079f01b6af9f7810a5e9758b0c66.zip
cpython-9c60f66dc252079f01b6af9f7810a5e9758b0c66.tar.gz
cpython-9c60f66dc252079f01b6af9f7810a5e9758b0c66.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 ae1f195..5bf7688 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)