Author: kurt.kaiser
Date: Wed Aug 22 23:34:28 2007
New Revision: 57289
Modified:
python/branches/py3k/Lib/idlelib/ScriptBinding.py
Log:
Replace file() with open()
Modified: python/branches/py3k/Lib/idlelib/ScriptBinding.py
==============================================================================
--- python/branches/py3k/Lib/idlelib/ScriptBinding.py (original)
+++ python/branches/py3k/Lib/idlelib/ScriptBinding.py Wed Aug 22 23:34:28 2007
@@ -82,7 +82,7 @@
self.shell = shell = self.flist.open_shell()
saved_stream = shell.get_warning_stream()
shell.set_warning_stream(shell.stderr)
- f = file(filename, 'r')
+ f = open(filename, 'r')
source = f.read()
f.close()
if '\r' in source:
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins