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

Commitc3c008c

Browse files
committed
In Submodule.iter_items, don't attach second empty iterator
This fixes the minor bug where a separate empty iterator was boundto the StopIteration exception raised as a result of returning fromthe generator function (#1779).This change does not cause what exceptions are raised fromGitPython code in any situations, nor how many items any iteratorsyield.
1 parentf5dc1c4 commitc3c008c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/objects/submodule/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ def iter_items(
14011401
pc=repo.commit(parent_commit)# Parent commit instance
14021402
parser=cls._config_parser(repo,pc,read_only=True)
14031403
except (IOError,BadName):
1404-
returniter([])
1404+
return
14051405
# END handle empty iterator
14061406

14071407
forsmsinparser.sections():

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp