From 5c09e2317268a2925560ef07f46c071ac806f42f Mon Sep 17 00:00:00 2001 From: Thomas Baruchel Date: Sat, 5 Nov 2022 11:37:18 +0100 Subject: [PATCH] Update --- rst2atom.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rst2atom.py b/rst2atom.py index b765cc1..0a9346a 100644 --- a/rst2atom.py +++ b/rst2atom.py @@ -15,6 +15,10 @@ html = docutils.core.publish_parts(open(filename, mode="r").read(), def extract_docinfos(html): + """ + Parse the publish_parts dictionary and return a dictionary containing + the docinfos from the RsT document. + """ soup1 = bs4.BeautifulSoup(html["docinfo"], 'html.parser') return { tr.find("th").text: tr.find("td").text