Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

            @functools.wraps(str_change_func)
    def wrapper(func_or_str):
        if isinstance(func_or_str, py23_basestring):
            func = None
            doc = func_or_str
        else:
            func = func_or_str
            doc = func.__doc__
        
        doc = str_change_func(doc)
        
        if func:
            func.__doc__ = doc
            return func
        return doc
        


src/n/a/natsort-3.1.1/natsort/natsort.py   natsort(Download)
import sys
 
from .py23compat import u_format, py23_basestring, py23_range, py23_str, py23_zip
 
__doc__ = u_format(__doc__) # Make sure the doctest works for either python2 or python3

src/n/a/natsort-HEAD/natsort/natsort.py   natsort(Download)
import sys
 
from .py23compat import u_format, py23_basestring, py23_range, py23_str, py23_zip
 
__doc__ = u_format(__doc__) # Make sure the doctest works for either python2 or python3