summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-10-23 19:48:58 -0300
committerJesusaves <cpntb1@ymail.com>2022-10-23 19:48:58 -0300
commit1c2dd285bf6b237a441c9351167d4795447b4d2f (patch)
treee082d1894f023a1268c008205f6f4dcbde48b5d4
parent4f2c6d6a9966bba32288b7d427d4becfcdec8ff4 (diff)
downloadtools-1c2dd285bf6b237a441c9351167d4795447b4d2f.tar.gz
tools-1c2dd285bf6b237a441c9351167d4795447b4d2f.tar.bz2
tools-1c2dd285bf6b237a441c9351167d4795447b4d2f.tar.xz
tools-1c2dd285bf6b237a441c9351167d4795447b4d2f.zip
Force encoding to UTF-8, I said.
-rwxr-xr-xnews.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/news.py b/news.py
index a3d327a..f5bbb52 100755
--- a/news.py
+++ b/news.py
@@ -50,7 +50,7 @@ class BasicWriter(object):
__slots__ = ('stream', 'isFirst')
__metaclass__ = ABCMeta
def __init__(self, outfile):
- self.stream = open(outfile, 'w')
+ self.stream = open(outfile, 'w', encoding='utf-8')
self.isFirst = True
@abstractmethod