(write)
| 964 | |
| 965 | |
| 966 | def wrapStdout(write): |
| 967 | def f(s): |
| 968 | if capture: |
| 969 | capture.logSideEffect({"type": "stdout", "value": str(s)}) |
| 970 | write(s) |
| 971 | return f |
| 972 | |
| 973 | if __name__ == "__main__": |
| 974 | import fakeprint # pylint: disable=import-error |
no outgoing calls