selectors.py
changeset 4458 6151849f41e0
parent 4340 cc0fe6279181
child 4462 c57c8176b8c2
equal deleted inserted replaced
4451:65f4665233e6 4458:6151849f41e0
    81         if TRACED_OIDS == 'all' or oid in TRACED_OIDS:
    81         if TRACED_OIDS == 'all' or oid in TRACED_OIDS:
    82             #SELECTOR_LOGGER.warning('selector %s returned %s for %s', selname, ret, cls)
    82             #SELECTOR_LOGGER.warning('selector %s returned %s for %s', selname, ret, cls)
    83             print '%s -> %s for %s(%s)' % (selname, ret, vobj, vobj.__regid__)
    83             print '%s -> %s for %s(%s)' % (selname, ret, vobj, vobj.__regid__)
    84         return ret
    84         return ret
    85     traced.__name__ = selector.__name__
    85     traced.__name__ = selector.__name__
       
    86     traced.__doc__ = selector.__doc__
    86     return traced
    87     return traced
    87 
    88 
    88 class traced_selection(object):
    89 class traced_selection(object):
    89     """selector debugging helper.
    90     """selector debugging helper.
    90 
    91