From 46201b346fec29f9cb740728a3c20266094d58b2 Mon Sep 17 00:00:00 2001 From: Barry Scott Date: Mon, 30 May 2016 15:05:32 +0100 Subject: Fix flake8 complaints --- git/remote.py | 4 ++-- git/util.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/git/remote.py b/git/remote.py index 1ef62409..ba51fe92 100644 --- a/git/remote.py +++ b/git/remote.py @@ -599,7 +599,7 @@ class Remote(LazyMixin, Iterable): finalize_process(proc, stderr=stderr_text) if error_message is not None: - raise GitCommandError( error_message, 2, stderr=stderr_text ) + raise GitCommandError(error_message, 2, stderr=stderr_text) # read head information fp = open(join(self.repo.git_dir, 'FETCH_HEAD'), 'rb') @@ -648,7 +648,7 @@ class Remote(LazyMixin, Iterable): handle_process_output(proc, stdout_handler, progress_handler, finalize_process) except GitCommandError as err: # convert any error from wait() into the same error with stdout lines - raise GitCommandError( err.command, err.status, progress.get_stderr() ) + raise GitCommandError(err.command, err.status, progress.get_stderr()) except Exception: if len(output) == 0: diff --git a/git/util.py b/git/util.py index f185156c..2f894576 100644 --- a/git/util.py +++ b/git/util.py @@ -194,8 +194,8 @@ class RemoteProgress(object): # Counting objects: 4, done. # Compressing objects: 50% (1/2) \rCompressing objects: 100% (2/2) \rCompressing objects: 100% (2/2), done. self._cur_line = line - if len(self._error_lines) > 0 or self._cur_line.startswith( ('error:', 'fatal:') ): - self._error_lines.append( self._cur_line ) + if len(self._error_lines) > 0 or self._cur_line.startswith(('error:', 'fatal:')): + self._error_lines.append(self._cur_line) return [] sub_lines = line.split('\r') -- cgit v1.2.1