(code: types.CodeType)
| 74 | |
| 75 | |
| 76 | def _has_coroutine_flag(code: types.CodeType) -> bool: |
| 77 | if COROUTINE_FLAG is None: |
| 78 | # Not supported on this Python version. |
| 79 | return False |
| 80 | |
| 81 | return bool(code.co_flags & COROUTINE_FLAG) |
| 82 | |
| 83 | |
| 84 | class PythonRepl(PythonInput): |
no outgoing calls
no test coverage detected