def parse_readme():
name = None<EOL>re_mod = re.compile(r'<STR_LIT>')<EOL>readme_file = os.path.join(modules_directory(), "<STR_LIT>")<EOL>modules_dict = {}<EOL>with open(readme_file) as f:<EOL><INDENT>for row in f.readlines():<EOL><INDENT>match = re_mod.match(row)<EOL>if match:<EOL><INDENT>name = match.group("<STR_LIT:name>")<EOL>modules_dict[name] = []<EOL>continue<EOL><DEDENT>if row.startswith("<STR_LIT>"):<EOL><INDENT>name = None<EOL>continue<EOL><DEDENT>if name:<EOL><INDENT>modules_dict[name].append(row)<EOL><DEDENT><DEDENT><DEDENT>return modules_dict<EOL>
Crude parsing of modules/README.md
returns a dict of {<module_name>: <documentation>}