Revision 20699809

b/lib/locking.py
357 357

  
358 358
    return bool(self._waiters)
359 359

  
360
  def __repr__(self):
361
    return ("<%s.%s waiters=%s at %#x>" %
362
            (self.__class__.__module__, self.__class__.__name__,
363
             self._waiters, id(self)))
364

  
360 365

  
361 366
class _PipeConditionWithMode(PipeCondition):
362 367
  __slots__ = [
......
436 441
      logging.debug("Adding lock %s to monitor", name)
437 442
      monitor.RegisterLock(self)
438 443

  
444
  def __repr__(self):
445
    return ("<%s.%s name=%s at %#x>" %
446
            (self.__class__.__module__, self.__class__.__name__,
447
             self.name, id(self)))
448

  
439 449
  def GetLockInfo(self, requested):
440 450
    """Retrieves information for querying locks.
441 451

  

Also available in: Unified diff