From 491440543571b07c849c0ef9c4ebf5c27f263bc0 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 7 Jan 2015 11:18:07 +0100 Subject: Implemented non-blocking operations using poll() Next up is using threads --- git/util.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'git/util.py') diff --git a/git/util.py b/git/util.py index 4de736d3..34b09d32 100644 --- a/git/util.py +++ b/git/util.py @@ -249,6 +249,14 @@ class RemoteProgress(object): # END for each sub line return failed_lines + def new_message_handler(self): + """: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()) + # end + return handler + def line_dropped(self, line): """Called whenever a line could not be understood and was therefore dropped.""" pass -- cgit v1.2.1