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

Commita0045d8

Browse files
committed
Made variable names more intuitive
1 parent03d26f0 commita0045d8

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

‎test/test_quick_doc.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ def test_cloned_repo_object(self, rw_dir):
136136
# Iterating through tree
137137
# [14-test_cloned_repo_object]
138138
tree=repo.tree()
139-
files_dirs= [fdforfdintree]
140-
files_dirs
139+
files_and_dirs= [entryforentryintree]
140+
files_and_dirs
141141

142142
# Output
143143
# [<git.Tree "1d1cbc95a765e42bd46561f197eef01281a97ac0">,
@@ -147,12 +147,11 @@ def test_cloned_repo_object(self, rw_dir):
147147
# ![14-test_cloned_repo_object]
148148

149149
# [15-test_cloned_repo_object]
150-
defprint_files_from_git(tree,delim='-',i=0):
151-
files_dirs= [fdforfdintree]
152-
forfdinfiles_dirs:
153-
print(f'{delimifi!=0else""}|{fd.path},{fd.type}')
154-
iffd.type=="tree":
155-
print_files_from_git(fd,delim*4,i+1)
150+
defprint_files_from_git(root,delim='-',i=0):
151+
forentryinroot:
152+
print(f'{delimifi!=0else""}|{entry.path},{entry.type}')
153+
ifentry.type=="tree":
154+
print_files_from_git(entry,delim*4,i+1)
156155

157156
# ![15-test_cloned_repo_object]
158157

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp