(self, doc_string)
| 102 | self._write(data) |
| 103 | |
| 104 | def include_doc_string(self, doc_string): |
| 105 | if doc_string: |
| 106 | try: |
| 107 | start = len(self._writes) |
| 108 | self.parser.feed(doc_string) |
| 109 | self.parser.close() |
| 110 | end = len(self._writes) |
| 111 | self._last_doc_string = (start, end) |
| 112 | except Exception: |
| 113 | LOG.debug('Error parsing doc string', exc_info=True) |
| 114 | LOG.debug(doc_string) |
| 115 | |
| 116 | def remove_last_doc_string(self): |
| 117 | # Removes all writes inserted by last doc string |