summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <rsd@gnu.org>2018-09-09 22:49:55 +0000
committerrsiddharth <rsd@gnu.org>2018-09-09 22:49:55 +0000
commit834bfc7217ff40b68886e54a71949eaa809e3ae8 (patch)
treef9d1cb308fa0df2c39925333daca668b72a8690e
parent9339655f0dacfaadc939543639ecb6759c955610 (diff)
lps_gen.py: Update write_file.
* lps_gen.py (write_file): Change file mode to just 'w'.
-rw-r--r--lps_gen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lps_gen.py b/lps_gen.py
index d0a0f5a..dda293b 100644
--- a/lps_gen.py
+++ b/lps_gen.py
@@ -64,7 +64,7 @@ def write_file(filename, filecontent):
"""
file_ = None
try:
- file_ = open(filename, 'wb')
+ file_ = open(filename, 'w')
file_.write(filecontent)
file_.close()
except IOError: