aboutsummaryrefslogtreecommitdiff
path: root/packaging/createmsi.py
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/createmsi.py')
-rw-r--r--packaging/createmsi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/createmsi.py b/packaging/createmsi.py
index 98c0bd6..f279df5 100644
--- a/packaging/createmsi.py
+++ b/packaging/createmsi.py
@@ -277,7 +277,7 @@ class PackageGenerator:
with open(self.main_xml, 'w') as open_file:
open_file.write(doc.toprettyxml())
# One last fix, add CDATA.
- with open(self.main_xml, 'r') as open_file:
+ with open(self.main_xml) as open_file:
data = open_file.read()
data = data.replace('X'*len(WINVER_CHECK), WINVER_CHECK)
with open(self.main_xml, 'w') as open_file: