summaryrefslogtreecommitdiff
path: root/git/util.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-07 12:37:49 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-07 12:37:49 +0100
commit87a6ffa13ae2951a168cde5908c7a94b16562b96 (patch)
tree4fa71b51e4d017ad2188c6c385043caba29e868c /git/util.py
parent763ef75d12f0ad6e4b79a7df304c7b5f1b5a11f2 (diff)
downloadgitpython-87a6ffa13ae2951a168cde5908c7a94b16562b96.tar.gz
Fix flake8
Diffstat (limited to 'git/util.py')
-rw-r--r--git/util.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/git/util.py b/git/util.py
index e211ca41..4d1ea8d6 100644
--- a/git/util.py
+++ b/git/util.py
@@ -251,7 +251,7 @@ class RemoteProgress(object):
return failed_lines
def new_message_handler(self):
- """:return: a progress handler suitable for handle_process_output(), passing lines on to this Progress
+ """:return: a progress handler suitable for handle_process_output(), passing lines on to this Progress
handler in a suitable format"""
def handler(line):
return self._parse_progress_line(line.rstrip())
@@ -704,26 +704,26 @@ class Iterable(object):
class WaitGroup(object):
"""WaitGroup is like Go sync.WaitGroup.
-
+
Without all the useful corner cases.
By Peter Teichman, taken from https://gist.github.com/pteichman/84b92ae7cef0ab98f5a8
"""
def __init__(self):
self.count = 0
self.cv = threading.Condition()
-
+
def add(self, n):
self.cv.acquire()
self.count += n
self.cv.release()
-
+
def done(self):
self.cv.acquire()
self.count -= 1
if self.count == 0:
self.cv.notify_all()
self.cv.release()
-
+
def wait(self):
self.cv.acquire()
while self.count > 0: