Compile code with the right compiler flags.
(self, code: str, mode: str)
| 378 | return super().get_compiler_flags() | PyCF_ALLOW_TOP_LEVEL_AWAIT |
| 379 | |
| 380 | def _compile_with_flags(self, code: str, mode: str) -> Any: |
| 381 | "Compile code with the right compiler flags." |
| 382 | return compile( |
| 383 | code, |
| 384 | "<stdin>", |
| 385 | mode, |
| 386 | flags=self.get_compiler_flags(), |
| 387 | dont_inherit=True, |
| 388 | ) |
| 389 | |
| 390 | def _handle_exception(self, e: BaseException) -> None: |
| 391 | # Required for pdb.post_mortem() to work. |
no test coverage detected