FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Make git.cmd.Git.CatFileContentStream iterable · RyaxTech/GitPython@4a1339a · GitHub

Repository navigation

Commit 4a1339a

Browse files
authored andcommitted
Make git.cmd.Git.CatFileContentStream iterable
Add __next__ method to git.cmd.Git.CatFileContentStream, so it can actually be used as an iterable
1 parent 037d62a commit 4a1339a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎git/cmd.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,9 @@ def readlines(self, size=-1):
497497
# skipcq: PYL-E0301
498498
def __iter__(self):
499499
return self
500+
501+
def __next__(self):
502+
return self.next()
500503

501504
def next(self):
502505
line = self.readline()

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL