We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c84dde2 + 5ab58f3 commit 202e31cCopy full SHA for 202e31c
git/cmd.py
@@ -695,15 +695,14 @@ def __iter__(self) -> "Git.CatFileContentStream":
695
return self
696
697
def __next__(self) -> bytes:
698
- return next(self)
699
-
700
- def next(self) -> bytes:
701
line = self.readline()
702
if not line:
703
raise StopIteration
704
705
return line
706
+ next = __next__
+
707
def __del__(self) -> None:
708
bytes_left = self._size - self._nbr
709
if bytes_left:
0 commit comments