diff --git a/git/cmd.py b/git/cmd.py index 5dd8dd5cf..dfce9024d 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -701,8 +701,7 @@ def __next__(self) -> bytes: return line - def next(self) -> bytes: - return next(self) + next = __next__ def __del__(self) -> None: bytes_left = self._size - self._nbr