(self, node, default)
| 275 | return node |
| 276 | |
| 277 | def parse_import_context(self, node, default): |
| 278 | if self.stream.current.test_any('name:with', 'name:without') and \ |
| 279 | self.stream.look().test('name:context'): |
| 280 | node.with_context = next(self.stream).value == 'with' |
| 281 | self.stream.skip() |
| 282 | else: |
| 283 | node.with_context = default |
| 284 | return node |
| 285 | |
| 286 | def parse_include(self): |
| 287 | node = nodes.Include(lineno=next(self.stream).lineno) |
no test coverage detected