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