Fix for issue #16800: Use buffered write to handle EINTR.
Fix for issue #16800: Use buffered write to handle EINTR.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator