Author: nick.coghlan Date: Tue Jul 31 15:38:01 2007 New Revision: 56633 Modified: python/trunk/Lib/threading.py Log: Eliminate RLock race condition reported in SF bug #1764059 Modified: python/trunk/Lib/threading.py ============================================================================== --- python/trunk/Lib/threading.py (original) +++ python/trunk/Lib/threading.py Tue Jul 31 15:38:01 2007 @@ -85,9 +85,10 @@ self.__count = 0 def __repr__(self): + owner = self.__owner return "<%s(%s, %d)>" % ( self.__class__.__name__, - self.__owner and self.__owner.getName(), + owner and owner.getName(), self.__count) def acquire(self, blocking=1):
participants (1)
-
nick.coghlan