(source, filename, symbol, incomplete_input=True, *, flags=0)
| 75 | return compiler(source, filename, symbol, incomplete_input=False) |
| 76 | |
| 77 | def _compile(source, filename, symbol, incomplete_input=True, *, flags=0): |
| 78 | if incomplete_input: |
| 79 | flags |= PyCF_ALLOW_INCOMPLETE_INPUT |
| 80 | flags |= PyCF_DONT_IMPLY_DEDENT |
| 81 | return compile(source, filename, symbol, flags) |
| 82 | |
| 83 | def compile_command(source, filename="<input>", symbol="single", flags=0): |
| 84 | r"""Compile a command and determine whether it is incomplete. |
nothing calls this directly
no test coverage detected
searching dependent graphs…