From 1d48a9aab910a8fad885e90ab9a95aaf9b3a42b5 Mon Sep 17 00:00:00 2001 From: Serhii Chvaliuk Date: Tue, 21 Apr 2020 17:00:46 -0400 Subject: [PATCH] make iterator python3 compatible --- git/cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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