(self, source, exclude=())
| 19 | |
| 20 | class BaseVariable(pycompat.ABC): |
| 21 | def __init__(self, source, exclude=()): |
| 22 | self.source = source |
| 23 | self.exclude = utils.ensure_tuple(exclude) |
| 24 | self.code = compile(source, '<variable>', 'eval') |
| 25 | if needs_parentheses(source): |
| 26 | self.unambiguous_source = '({})'.format(source) |
| 27 | else: |
| 28 | self.unambiguous_source = source |
| 29 | |
| 30 | def items(self, frame, normalize=False): |
| 31 | try: |
nothing calls this directly
no test coverage detected