diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2007-08-22 21:34:28 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2007-08-22 21:34:28 (GMT) |
commit | 7a4dbaf8373b507430fb41f0744eef0cdd3df1b4 (patch) | |
tree | d5199236337f67ba0741edb0335a1f9f2e5bf776 | |
parent | 2d726df26ee812fa37d7a4476908fa741dfb65ea (diff) | |
download | cpython-7a4dbaf8373b507430fb41f0744eef0cdd3df1b4.zip cpython-7a4dbaf8373b507430fb41f0744eef0cdd3df1b4.tar.gz cpython-7a4dbaf8373b507430fb41f0744eef0cdd3df1b4.tar.bz2 |
Replace file() with open()
-rw-r--r-- | Lib/idlelib/ScriptBinding.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/ScriptBinding.py b/Lib/idlelib/ScriptBinding.py index 47eadb2..c84ec88 100644 --- a/Lib/idlelib/ScriptBinding.py +++ b/Lib/idlelib/ScriptBinding.py @@ -82,7 +82,7 @@ class ScriptBinding: 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: |