[Python-checkins] cpython (merge 3.3 -> default): Complete 2 to 3 conversion
terry.reedy
python-checkins at python.org
Mon May 13 21:54:16 CEST 2013
http://hg.python.org/cpython/rev/eeb89ebfa9b6
changeset: 83762:eeb89ebfa9b6
parent: 83760:1fa1a021ed23
parent: 83761:905e32ba16bf
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Mon May 13 15:44:30 2013 -0400
summary:
Complete 2 to 3 conversion
files:
Lib/idlelib/textView.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/idlelib/textView.py b/Lib/idlelib/textView.py
--- a/Lib/idlelib/textView.py
+++ b/Lib/idlelib/textView.py
@@ -80,7 +80,7 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list