(self, frame)
| 473 | (mapping[name], dependency, name)) |
| 474 | |
| 475 | def enter_frame(self, frame): |
| 476 | undefs = [] |
| 477 | for target, (action, param) in iteritems(frame.symbols.loads): |
| 478 | if action == VAR_LOAD_PARAMETER: |
| 479 | pass |
| 480 | elif action == VAR_LOAD_RESOLVE: |
| 481 | self.writeline('%s = %s(%r)' % |
| 482 | (target, self.get_resolve_func(), param)) |
| 483 | elif action == VAR_LOAD_ALIAS: |
| 484 | self.writeline('%s = %s' % (target, param)) |
| 485 | elif action == VAR_LOAD_UNDEFINED: |
| 486 | undefs.append(target) |
| 487 | else: |
| 488 | raise NotImplementedError('unknown load instruction') |
| 489 | if undefs: |
| 490 | self.writeline('%s = missing' % ' = '.join(undefs)) |
| 491 | |
| 492 | def leave_frame(self, frame, with_python_scope=False): |
| 493 | if not with_python_scope: |
no test coverage detected