Commit fe953bf7 authored by Jason Madden's avatar Jason Madden

Typo and indentation corrections. One more resource warning.

parent 6c97510b
...@@ -1154,10 +1154,11 @@ def _create_script(contents, dest): ...@@ -1154,10 +1154,11 @@ def _create_script(contents, dest):
win32_changed = True win32_changed = True
if os.path.exists(win32_exe): if os.path.exists(win32_exe):
with open(win32_exe, 'rb') as f: with open(win32_exe, 'rb') as f:
win32_changed = f.reod() != new_data win32_changed = f.read() != new_data
if win32_changed: if win32_changed:
# Only write it if it's different. # Only write it if it's different.
open(win32_exe, 'wb').write(new_data) with open(win32_exe, 'wb') as f:
f.write(new_data)
generated.append(win32_exe) generated.append(win32_exe)
if changed: if changed:
......
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