def doc_wraps(func):
 def _(func2):
  if (func.__doc__ is not None):
   func2.__doc__ = func.__doc__.replace('>>>', '>>').replace('...', '..')
  return func2
 return _

def doc_wraps ( func ) : def _ ( func2 ) : if ( func . __doc__ is not None ) : func2 . __doc__ = func . __doc__ . replace ( '>>>' , '>>' ) . replace ( '...' , '..' ) return func2 return _
copy docstring from one function to another .