diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-10-23 19:31:55 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-10-23 19:31:55 -0300 |
commit | 4f2c6d6a9966bba32288b7d427d4becfcdec8ff4 (patch) | |
tree | 6d5cb19971fddfef786fce00be8be1920e7151f8 /news.py | |
parent | a5d6818c8e4f68d9b7dd6272754a781c90be3f8a (diff) | |
download | tools-4f2c6d6a9966bba32288b7d427d4becfcdec8ff4.tar.gz tools-4f2c6d6a9966bba32288b7d427d4becfcdec8ff4.tar.bz2 tools-4f2c6d6a9966bba32288b7d427d4becfcdec8ff4.tar.xz tools-4f2c6d6a9966bba32288b7d427d4becfcdec8ff4.zip |
Explicitely parse new files as Unicode
Diffstat (limited to 'news.py')
-rwxr-xr-x | news.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -185,7 +185,7 @@ def main(outdir, indir=None): suffix = '.txt' if not entry.endswith(suffix): continue - e = open(os.path.join(indir, entry)).read() + e = open(os.path.join(indir, entry), encoding="utf-8").read() for s in out: s.put(e, entry[:-len(suffix)]) for s in out: |