mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
sync: TeeStringIO write should return int
Change-Id: I211776a493cad4b005c6e201833e9700def2feb9 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/390657 Reviewed-by: Mike Frysinger <vapier@google.com> Commit-Queue: Daniel Kutik <daniel.kutik@lavawerk.com> Tested-by: Daniel Kutik <daniel.kutik@lavawerk.com>
This commit is contained in:
parent
1fd5c4bdf2
commit
b0430b5bc5
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user