Commit 969d149d authored by Georgios D. Tsoukalas's avatar Georgios D. Tsoukalas
Browse files

fix auto-generation in get_doc()

parent 88fd50c9
......@@ -652,11 +652,15 @@ class Canonifier(object):
yield call_name, call_doc
def get_doc(self, name):
if name not in self.doc_strings:
doc_strings = self.doc_strings
if name not in doc_strings:
m = "%s: Invalid method name '%s'" % (, name)
raise CanonifyException(m)
return self.doc_strings[name]
docstring = doc_strings[name]
if not docstring:
docstring = self.input_canonical(name).tostring()
return docstring
def call_attrs(self):
for call_name, canonical in self.input_canonicals.iteritems():
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment