Commit 29b115e7 authored by Kurt B. Kaiser's avatar Kurt B. Kaiser

Replace file() with open()

parent 0fdb693c
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment