Skip to content

Commit ef4d6d5

Browse files
committed
redundant code cell
1 parent 2a45f94 commit ef4d6d5

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

doc/source/quickstart.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,6 @@ Display level 1 Contents
7575
:start-after: # [14-test_cloned_repo_object]
7676
:end-before: # ![14-test_cloned_repo_object]
7777

78-
.. literalinclude:: ../../test/test_quick_doc.py
79-
:language: python
80-
:dedent: 8
81-
:start-after: # [14.1-test_cloned_repo_object]
82-
:end-before: # ![14.1-test_cloned_repo_object]
83-
8478
Recurse through the Tree
8579
########################
8680

@@ -242,4 +236,3 @@ Compare commit to commit
242236
:end-before: # ![11.3-test_cloned_repo_object]
243237

244238

245-

test/test_quick_doc.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -163,25 +163,14 @@ def test_cloned_repo_object(self, local_dir):
163163

164164
# Iterating through tree
165165
# [14-test_cloned_repo_object]
166-
files_and_dirs = [entry for entry in tree]
167-
files_and_dirs
168-
169-
# Output
170-
# [<git.Commit "SHA1-HEX_HASH">,
171-
# <git.Commit "SHA1-HEX_HASH">,
172-
# <git.Commit "SHA1-HEX_HASH">]
173-
174-
# ![14-test_cloned_repo_object]
175-
176-
# [14.1-test_cloned_repo_object]
177166
files_and_dirs = [(entry, entry.name, entry.type) for entry in tree]
178167
files_and_dirs
179168

180169
# Output
181170
# [(< git.Tree "SHA1-HEX_HASH" >, 'Downloads', 'tree'),
182171
# (< git.Tree "SHA1-HEX_HASH" >, 'dir1', 'tree'),
183172
# (< git.Blob "SHA1-HEX_HASH" >, 'file4.txt', 'blob')]
184-
# ![14.1-test_cloned_repo_object]
173+
# ![14-test_cloned_repo_object]
185174

186175
# [15-test_cloned_repo_object]
187176
def print_files_from_git(root, level=0):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy