Skip to content
Snippets Groups Projects
Commit f6bf3788 authored by paulavidas's avatar paulavidas Committed by Copybara-Service
Browse files

Return number of bytes written in case of BlockingIOError.

In case of a partial write BufferedIOBase doesn't return the length of data written, but gives a BlockingIOError that contains the number of characters written.
See https://docs.python.org/3/library/io.html#io.BufferedIOBase.write

Also, RawIOBase returns None (and not 0) when no data can be written.

PiperOrigin-RevId: 268167212
parent 3404474d
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment