From 8348c3545b1a25bd088f5acb936b9ff2389a2f8e Mon Sep 17 00:00:00 2001 From: John Hammond Date: Sun, 24 May 2020 03:11:52 -0400 Subject: [PATCH] Corrected failure to return data --- src/base64io/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/base64io/__init__.py b/src/base64io/__init__.py index 35a9a02..6f93ef5 100644 --- a/src/base64io/__init__.py +++ b/src/base64io/__init__.py @@ -209,6 +209,8 @@ class Base64IO(io.IOBase): self.bytes_counter += len(chunk) + return len(chunk) + def write(self, b, line_length=76): # type: (bytes) -> int """Base64-encode the bytes and write them to the wrapped stream.