diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2019-10-29 08:31:39 +0100 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2019-10-29 08:31:39 +0100 |
commit | 52ee6c19423297b4c667d34ed1bd621dafaabb0e (patch) | |
tree | 5ac04998b1f5b0fba24297e97f5592c74b617688 /git/util.py | |
parent | 553500a3447667aaa9bd3b922742575562c03b68 (diff) | |
parent | 9932e647aaaaf6edd3a407b75edd08a96132ef5c (diff) | |
download | gitpython-52ee6c19423297b4c667d34ed1bd621dafaabb0e.tar.gz |
Merge branch 'fix/deepsource-issues' of https://github.com/imkaka/GitPython into imkaka-fix/deepsource-issues
Diffstat (limited to 'git/util.py')
-rw-r--r-- | git/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/util.py b/git/util.py index 99600e37..974657e6 100644 --- a/git/util.py +++ b/git/util.py @@ -133,7 +133,7 @@ def join_path(a, *p): '/' instead of possibly '\' on windows.""" path = a for b in p: - if len(b) == 0: + if not b: continue if b.startswith('/'): path += b[1:] @@ -386,7 +386,7 @@ class RemoteProgress(object): # Compressing objects: 100% (2/2) # Compressing objects: 100% (2/2), done. self._cur_line = line = line.decode('utf-8') if isinstance(line, bytes) else line - if len(self.error_lines) > 0 or self._cur_line.startswith(('error:', 'fatal:')): + if self.error_lines or self._cur_line.startswith(('error:', 'fatal:')): self.error_lines.append(self._cur_line) return |