def coverage(fn):
 fp = TraceFuncCoverage(fn)
 def new_fn(*args, **kw):
  return fp(*args, **kw)
 new_fn.__doc__ = fn.__doc__
 new_fn.__name__ = fn.__name__
 new_fn.__dict__ = fn.__dict__
 new_fn.__module__ = fn.__module__
 return new_fn

def coverage ( fn ) : fp = TraceFuncCoverage ( fn ) def new_fn ( * args , ** kw ) : return fp ( * args , ** kw ) new_fn . __doc__ = fn . __doc__ new_fn . __name__ = fn . __name__ new_fn . __dict__ = fn . __dict__ new_fn . __module__ = fn . __module__ return new_fn
mark fn for line coverage analysis .