summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git/objects/commit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/objects/commit.py b/git/objects/commit.py
index 0565b2c0..4ccd9d75 100644
--- a/git/objects/commit.py
+++ b/git/objects/commit.py
@@ -252,7 +252,7 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable):
assert len(hexsha) == 40, "Invalid line: %s" % hexsha
yield Commit(repo, hex_to_bin(hexsha))
# END for each line in stream
- if has_attr(proc_or_stream, 'wait'):
+ if hasattr(proc_or_stream, 'wait'):
finalize_process(proc_or_stream)