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

Commitb5d9198

Browse files
committed
Remove commented-out code
1 parentb6e3ad2 commitb5d9198

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎git/objects/base.py‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030

3131
# --------------------------------------------------------------------------
3232

33-
34-
# _assertion_msg_format = "Created object %r whose python type %r disagrees with the actual git object type %r"
35-
3633
__all__= ("Object","IndexObject")
3734

3835

@@ -154,8 +151,7 @@ def _set_cache_(self, attr: str) -> None:
154151
"""Retrieve object information."""
155152
ifattr=="size":
156153
oinfo=self.repo.odb.info(self.binsha)
157-
self.size=oinfo.size# type: int
158-
# assert oinfo.type == self.type, _assertion_msg_format % (self.binsha, oinfo.type, self.type)
154+
self.size=oinfo.size# type: int
159155
else:
160156
super()._set_cache_(attr)
161157

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp