diff --git a/git/cmd.py b/git/cmd.py index e87a3b800..a036fd8f8 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -498,7 +498,7 @@ def readlines(self, size=-1): def __iter__(self): return self - def next(self): + def __next__(self): line = self.readline() if not line: raise StopIteration