From b0430b5bc519c93adce2e670d3b5083086a43383 Mon Sep 17 00:00:00 2001 From: Daniel Kutik Date: Mon, 23 Oct 2023 21:16:04 +0200 Subject: [PATCH] sync: TeeStringIO write should return int Change-Id: I211776a493cad4b005c6e201833e9700def2feb9 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/390657 Reviewed-by: Mike Frysinger Commit-Queue: Daniel Kutik Tested-by: Daniel Kutik --- subcmds/sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subcmds/sync.py b/subcmds/sync.py index 2fea61d5..9e43df4a 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -185,9 +185,10 @@ class TeeStringIO(io.StringIO): def write(self, s: str) -> int: """Write to additional destination.""" - super().write(s) + ret = super().write(s) if self.io is not None: self.io.write(s) + return ret class Sync(Command, MirrorSafeCommand):