Skip to content

Commit 46201b3

Browse files
committed
Fix flake8 complaints
1 parent 78f3f38 commit 46201b3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎git/remote.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ def _get_fetch_info_from_stderr(self, proc, progress):
599599
finalize_process(proc, stderr=stderr_text)
600600

601601
iferror_messageisnotNone:
602-
raiseGitCommandError(error_message, 2, stderr=stderr_text)
602+
raiseGitCommandError(error_message, 2, stderr=stderr_text)
603603

604604
# read head information
605605
fp=open(join(self.repo.git_dir, 'FETCH_HEAD'), 'rb')
@@ -648,7 +648,7 @@ def stdout_handler(line):
648648
handle_process_output(proc, stdout_handler, progress_handler, finalize_process)
649649
exceptGitCommandErroraserr:
650650
# convert any error from wait() into the same error with stdout lines
651-
raiseGitCommandError(err.command, err.status, progress.get_stderr())
651+
raiseGitCommandError(err.command, err.status, progress.get_stderr())
652652

653653
exceptException:
654654
iflen(output) ==0:

‎git/util.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ def _parse_progress_line(self, line):
194194
# Counting objects: 4, done.
195195
# Compressing objects: 50% (1/2) \rCompressing objects: 100% (2/2) \rCompressing objects: 100% (2/2), done.
196196
self._cur_line=line
197-
iflen(self._error_lines) >0orself._cur_line.startswith(('error:', 'fatal:')):
198-
self._error_lines.append(self._cur_line)
197+
iflen(self._error_lines) >0orself._cur_line.startswith(('error:', 'fatal:')):
198+
self._error_lines.append(self._cur_line)
199199
return []
200200

201201
sub_lines=line.split('\r')

0 commit comments

Comments
(0)