[Python-checkins] cpython (3.3): Complete 2 to 3 conversion
terry.reedy
python-checkins at python.org
Mon May 13 21:54:15 CEST 2013
http://hg.python.org/cpython/rev/905e32ba16bf
changeset: 83761:905e32ba16bf
branch: 3.3
parent: 83759:2187cf880e5b
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Mon May 13 15:39:24 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