summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Scott <barry@barrys-emacs.org>2016-05-30 15:05:32 +0100
committerBarry Scott <barry@barrys-emacs.org>2016-05-30 15:05:32 +0100
commit46201b346fec29f9cb740728a3c20266094d58b2 (patch)
treef1a2b87934366974a2d60497e2f630cb9844e515
parent78f3f38d18fc88fd639af8a6c1ef757d2ffe51d6 (diff)
downloadgitpython-46201b346fec29f9cb740728a3c20266094d58b2.tar.gz
Fix flake8 complaints
-rw-r--r--git/remote.py4
-rw-r--r--git/util.py4
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')