diff options
author | Jonathan Chu <jonathan.chu@me.com> | 2016-05-24 12:02:13 -0400 |
---|---|---|
committer | Jonathan Chu <jonathan.chu@me.com> | 2016-05-24 12:02:13 -0400 |
commit | 903826a50d401d8829912e4bcd8412b8cdadac02 (patch) | |
tree | 459713484f0430d885dc9f1fa5c02436e4efb2e1 | |
parent | 73ab28744df3fc292a71c3099ff1f3a20471f188 (diff) | |
download | gitpython-903826a50d401d8829912e4bcd8412b8cdadac02.tar.gz |
Check if byte string is empty for py3 compatibility
-rw-r--r-- | git/repo/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |