# HG changeset patch # User Sylvain Thénault # Date 1265285846 -3600 # Node ID 6151849f41e0cd6c60349f57d5ee3bdd06cdca22 # Parent 65f4665233e65b4476b17b14d73929731a5bffb6 copy back __doc__ for proper sphinx doc generation diff -r 65f4665233e6 -r 6151849f41e0 appobject.py --- a/appobject.py Thu Feb 04 10:17:15 2010 +0100 +++ b/appobject.py Thu Feb 04 13:17:26 2010 +0100 @@ -32,7 +32,8 @@ """ return type(selector_func.__name__, (Selector,), - {'__call__': lambda self, *args, **kwargs: selector_func(*args, **kwargs)}) + {'__doc__': selector_func.__doc__, + '__call__': lambda self, *a, **kw: selector_func(*a, **kw)}) def _instantiate_selector(selector): diff -r 65f4665233e6 -r 6151849f41e0 selectors.py --- a/selectors.py Thu Feb 04 10:17:15 2010 +0100 +++ b/selectors.py Thu Feb 04 13:17:26 2010 +0100 @@ -83,6 +83,7 @@ print '%s -> %s for %s(%s)' % (selname, ret, vobj, vobj.__regid__) return ret traced.__name__ = selector.__name__ + traced.__doc__ = selector.__doc__ return traced class traced_selection(object):