From 903826a50d401d8829912e4bcd8412b8cdadac02 Mon Sep 17 00:00:00 2001 From: Jonathan Chu Date: Tue, 24 May 2016 12:02:13 -0400 Subject: Check if byte string is empty for py3 compatibility --- git/repo/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/repo/base.py b/git/repo/base.py index af3050bf..32ee830e 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -685,7 +685,7 @@ class Repo(object): stream = iter(data.split(b'\n')) while True: line = next(stream) # when exhausted, casues a StopIteration, terminating this function - if line.strip() == '': + if line.strip() == '' or line.strip() == b'': # Skip over empty lines continue hexsha, orig_lineno, lineno, num_lines = line.split() -- cgit v1.2.1