Closed jvorcak closed 5 years ago
When outputing json, we shuld not output anything to std output.
json
Since we're using yaspin, we can provide a null context in certain cases to fix this
yaspin
from contextlib import nullcontext with (open(file) if file else nullcontext()) as FILE: # Do something with `FILE` pass
When outputing
json
, we shuld not output anything to std output.Since we're using
yaspin
, we can provide a null context in certain cases to fix this