summaryrefslogtreecommitdiff
path: root/news.py
diff options
context:
space:
mode:
authorLed Mitz <smoothshifter@tuta.io>2024-06-02 22:08:33 +0000
committerLed Mitz <smoothshifter@tuta.io>2024-06-02 22:08:33 +0000
commit87c41763bd3800eb365c20a5c28d44c1b4224eb3 (patch)
tree6d0a6b73d4bb473a5c578d7c3123cded963b8284 /news.py
parent1dc56421493df2b9016b0096998cd668a429ab9e (diff)
parent0a4383b895d169670a3c25c52dcab4e8e656f182 (diff)
downloadtools-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-xnews.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/news.py b/news.py
index f5bbb52..531445a 100755
--- a/news.py
+++ b/news.py
@@ -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/>')