diff options
author | Led Mitz <smoothshifter@tuta.io> | 2024-06-02 22:08:33 +0000 |
---|---|---|
committer | Led Mitz <smoothshifter@tuta.io> | 2024-06-02 22:08:33 +0000 |
commit | 87c41763bd3800eb365c20a5c28d44c1b4224eb3 (patch) | |
tree | 6d0a6b73d4bb473a5c578d7c3123cded963b8284 /news.py | |
parent | 1dc56421493df2b9016b0096998cd668a429ab9e (diff) | |
parent | 0a4383b895d169670a3c25c52dcab4e8e656f182 (diff) | |
download | tools-87c41763bd3800eb365c20a5c28d44c1b4224eb3.tar.gz tools-87c41763bd3800eb365c20a5c28d44c1b4224eb3.tar.bz2 tools-87c41763bd3800eb365c20a5c28d44c1b4224eb3.tar.xz tools-87c41763bd3800eb365c20a5c28d44c1b4224eb3.zip |
Merge branch 'fix-news-python3' into 'master'
news.py: Fixed error when using Python 3.8 or later
See merge request legacy/tools!43
Diffstat (limited to 'news.py')
-rwxr-xr-x | news.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -124,7 +124,7 @@ class JSONWriter(BasicWriter): entry, author = entry.rstrip('\n').rsplit('\n', 1) self.stream.write('"title":"%s",' % title.format(**{'title':NOPFmt()})) # FIXME: assumes the first line is always the title self.stream.write('"date":"%s",' % date.format(**{'date':NOPFmt()})) # FIXME: assumes the second line is always the date - self.stream.write('"author":"%s",' % author.format(**{'author':NOPFmt()})) # FIXME: assumes the second line is always the date + self.stream.write('"author":"%s",' % author.format(**{'author':NOPFmt()})) # FIXME: assumes the last line is always the author self.stream.write('"html":"') entry = entry.lstrip('\n') entry = entry.replace('\n\n', '<br/>') |