Confirmed with this simple test with python2.7:
import sys
def exit_with_error(msg, errno=-1): print(msg) and sys.exit(errno)
if __name__ == "__main__": exit_with_error("print this message")
The message doesn't get flushed.
Confirmed with this simple test with python2.7:
import sys
def exit_with_ error(msg, errno=-1):
print(msg) and sys.exit(errno)
if __name__ == "__main__":
exit_with_ error(" print this message")
The message doesn't get flushed.