Fix flake8 errors · gitpython-developers/GitPython@69ca329 · GitHub
Skip to content

Commit 69ca329

Browse files
committed
Fix flake8 errors
1 parent 9c6209f commit 69ca329

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

git/index/base.py

Lines changed: 2 additions & 2 deletions

git/refs/symbolic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def delete(cls, repo, path):
466466
# write-binary is required, otherwise windows will
467467
# open the file in text mode and change LF to CRLF !
468468
with open(pack_file_path, 'wb') as fd:
469-
fd.writelines(l.encode(defenc) for l in new_lines)
469+
fd.writelines(line.encode(defenc) for line in new_lines)
470470

471471
except (OSError, IOError):
472472
pass # it didn't exist at all

git/remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ def _get_fetch_info_from_stderr(self, proc, progress):
686686

687687
# read head information
688688
with open(osp.join(self.repo.common_dir, 'FETCH_HEAD'), 'rb') as fp:
689-
fetch_head_info = [l.decode(defenc) for l in fp.readlines()]
689+
fetch_head_info = [line.decode(defenc) for line in fp.readlines()]
690690

691691
l_fil = len(fetch_info_lines)
692692
l_fhi = len(fetch_head_info)

git/test/test_index.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)