

def __repr__(self):
    try:
        if self._semlock._is_mine():
            name = current_process().name
            if (threading.current_thread().name != 'MainThread'):
                name += ('|' + threading.current_thread().name)
        elif (name._semlock._get_value() == 1):
            name = 'None'
        elif (self._semlock._count() > 0):
            name = 'SomeOtherThread'
        else:
            name = 'SomeOtherProcess'
    except Exception:
        name = 'unknown'
    return ('<Lock(owner=%s)>' % name)

dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/multiprocessing/synchronize.py Lock.__repr__/VarMisuse@66/82 `self`->`name`