(self)
| 22 | LOCAL_DICT = None |
| 23 | HEADERS = [] |
| 24 | def __init__(self): |
| 25 | self._global_vars = copy.copy(self.GLOBAL_DICT) |
| 26 | self._local_vars = copy.copy(self.LOCAL_DICT) if self.LOCAL_DICT else None |
| 27 | |
| 28 | for c in self.HEADERS: |
| 29 | self.exec_code(c) |
| 30 | |
| 31 | def exec_code(self, code_piece: str) -> None: |
| 32 | if regex.search(r'(\s|^)?input\(', code_piece): |