Skip to content
Snippets Groups Projects
Commit a27f0493 authored by Henning Glawe's avatar Henning Glawe
Browse files

add _annotate private method, which just writes to annotateFile

parent 0cae4c97
No related branches found
No related tags found
No related merge requests found
......@@ -128,6 +128,11 @@ class FploInputParser(object):
return False
raise RuntimeError('no idea what to do with literal "%s"' % (match.group(0)))
def _annotate(self, what):
"""write string to annotateFile if present"""
if self.__annotateFile:
self.__annotateFile.write(what)
def state_root(self, line, pos_in_line):
"""state: no open section, i.e. at the root of the namelist"""
# match literals
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment