Eliminate RLock race condition reported in SF bug #1764059

This commit is contained in:
Nick Coghlan 2007-07-31 13:38:01 +00:00
parent 4950442fb7
commit f8bbaa962f
1 changed files with 2 additions and 1 deletions

View File

@ -85,9 +85,10 @@ class _RLock(_Verbose):
self.__count = 0 self.__count = 0
def __repr__(self): def __repr__(self):
owner = self.__owner
return "<%s(%s, %d)>" % ( return "<%s(%s, %d)>" % (
self.__class__.__name__, self.__class__.__name__,
self.__owner and self.__owner.getName(), owner and owner.getName(),
self.__count) self.__count)
def acquire(self, blocking=1): def acquire(self, blocking=1):