diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-10-28 21:15:30 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-10-28 21:15:30 (GMT) |
commit | 837ce9389e246c84a8791cf0ed64b277efce1f6b (patch) | |
tree | 76ceae567a01cba4ff44e2dc80328c55d8ea49ae /Modules | |
parent | b21e0815bf5a6d6a3e795354e3c9a9afde8f24f7 (diff) | |
download | cpython-837ce9389e246c84a8791cf0ed64b277efce1f6b.zip cpython-837ce9389e246c84a8791cf0ed64b277efce1f6b.tar.gz cpython-837ce9389e246c84a8791cf0ed64b277efce1f6b.tar.bz2 |
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.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/threadmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c index 448b11c..036619a 100644 --- a/Modules/threadmodule.c +++ b/Modules/threadmodule.c @@ -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); |