(self, node, default)
| 236 | return node |
| 237 | |
| 238 | def parse_import_context(self, node, default): |
| 239 | if self.stream.current.test_any('name:with', 'name:without') and \ |
| 240 | self.stream.look().test('name:context'): |
| 241 | node.with_context = next(self.stream).value == 'with' |
| 242 | self.stream.skip() |
| 243 | else: |
| 244 | node.with_context = default |
| 245 | return node |
| 246 | |
| 247 | def parse_include(self): |
| 248 | node = nodes.Include(lineno=next(self.stream).lineno) |
no test coverage detected