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

Commit01c95eb

Browse files
committed
Don't patch IndexObject and Object into git.objects.submodule.util
Such patching, which was introduced in9519f18, seems no longer tobe necessary. Since git.objects.submodule.util.__all__ has existedfor a long time without including those names, they are notconceptually public attributes of git.objects.submodule.util, sothey should not be in use by any code outside GitPython either.The modattrs.py script shows the change, as expected, showing thesetwo names as no longer being in the git.objects.submodule.utilmodule dictionary, in output of: python modattrs.py >b git diff --no-index a bHowever, because the removal is intentional, this is okay.
1 parentc58be4c commit01c95eb

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

‎git/objects/__init__.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,10 @@
88
from .baseimport*# noqa: F403
99
from .blobimport*# noqa: F403
1010
from .commitimport*# noqa: F403
11-
from .submoduleimportutilassmutil
1211
from .submodule.baseimport*# noqa: F403
1312
from .submodule.rootimport*# noqa: F403
1413
from .tagimport*# noqa: F403
1514
from .treeimport*# noqa: F403
1615

17-
# Fix import dependency - add IndexObject to the util module, so that it can be imported
18-
# by the submodule.base.
19-
smutil.IndexObject=IndexObject# type: ignore[attr-defined] # noqa: F405
20-
smutil.Object=Object# type: ignore[attr-defined] # noqa: F405
21-
delsmutil
22-
2316
# Must come after submodule was made available.
2417
__all__= [nameforname,objinlocals().items()ifnot (name.startswith("_")orinspect.ismodule(obj))]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp