Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce0f65b

Browse files
committed
Remove invalid assert.
1 parent 79e61bf commit ce0f65b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Tools/gdb/libpython.py

-1
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,6 @@ def get_attr_dict(self):
508508
tsize = -tsize
509509
size = _PyObject_VAR_SIZE(typeobj, tsize)
510510
dictoffset += size
511-
assert dictoffset > 0
512511
assert dictoffset % _sizeof_void_p() == 0
513512

514513
dictptr = self._gdbval.cast(_type_char_ptr()) + dictoffset

0 commit comments

Comments
 (0)