mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Add some asserts. In sysmodule, I think these were to try to silence
some warnings from Klokwork. They verify the assumptions of the format of svn version output. The assert in the thread module helped debug a problem on HP-UX.
This commit is contained in:
parent
b21e0815bf
commit
837ce9389e
2 changed files with 5 additions and 0 deletions
|
@ -25,6 +25,7 @@ typedef struct {
|
|||
static void
|
||||
lock_dealloc(lockobject *self)
|
||||
{
|
||||
assert(self->lock_lock);
|
||||
/* Unlock the lock so it's safe to free it */
|
||||
PyThread_acquire_lock(self->lock_lock, 0);
|
||||
PyThread_release_lock(self->lock_lock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue