Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit69ca329

Browse files
committed
Fix flake8 errors
1 parent9c6209f commit69ca329

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

‎git/index/base.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ def unmerged_blobs(self):
463463
forstage,blobinself.iter_blobs(is_unmerged_blob):
464464
path_map.setdefault(blob.path, []).append((stage,blob))
465465
# END for each unmerged blob
466-
forlinpath_map.values():
467-
l.sort()
466+
forlineinpath_map.values():
467+
line.sort()
468468
returnpath_map
469469

470470
@classmethod

‎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
withopen(pack_file_path,'wb')asfd:
469-
fd.writelines(l.encode(defenc)forlinnew_lines)
469+
fd.writelines(line.encode(defenc)forlineinnew_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
withopen(osp.join(self.repo.common_dir,'FETCH_HEAD'),'rb')asfp:
689-
fetch_head_info= [l.decode(defenc)forlinfp.readlines()]
689+
fetch_head_info= [line.decode(defenc)forlineinfp.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
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def test_index_file_from_tree(self, rw_repo):
212212
assertunmerged_blob_map
213213

214214
# pick the first blob at the first stage we find and use it as resolved version
215-
three_way_index.resolve_blobs(l[0][1]forlinunmerged_blob_map.values())
215+
three_way_index.resolve_blobs(line[0][1]forlineinunmerged_blob_map.values())
216216
tree=three_way_index.write_tree()
217217
assertisinstance(tree,Tree)
218218
num_blobs=0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp