Guest User

Untitled

a guest
May 26th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. result = ViewList()
  2. result.append(u'', '')
  3. result.append(u'', '<includedoc>')
  4. #import pdb; pdb.set_trace()
  5. docstringlines = prepare_docstring(open(doc_path).read())
  6. for i, line in enumerate(docstringlines):
  7. print i, self.doc+':docstring of '+self.module, u' '+line
  8. result.append(line, self.doc+':docstring of '+self.module, i)
  9. result.append(u'', '<includedoc>')
  10. node = paragraph()
  11. self.state.nested_parse(result, 0, node)
  12. return [node]
Add Comment
Please, Sign In to add comment