A context manager for preparing the source for expressions. It adds *start* to the buffer and enters, after exit it adds *end*.
(self, start, end)
| 131 | |
| 132 | @contextmanager |
| 133 | def delimit(self, start, end): |
| 134 | """A context manager for preparing the source for expressions. It adds |
| 135 | *start* to the buffer and enters, after exit it adds *end*.""" |
| 136 | |
| 137 | self.write(start) |
| 138 | yield |
| 139 | self.write(end) |
| 140 | |
| 141 | def delimit_if(self, start, end, condition): |
| 142 | if condition: |
no test coverage detected