def deprecated(version, replacement=None):
    def deprecationDecorator(function):
        """
        Decorator that marks C{function} as deprecated.
        """
        warningString = getDeprecationWarningString(
            function, version, None, replacement)

        def deprecatedFunction(*args, **kwargs):
            warn(
                warningString,
                BokehDeprecationWarning,
                stacklevel=2)
            return function(*args, **kwargs)

        deprecatedFunction = mergeFunctionMetadata(
            function, deprecatedFunction)
        _appendToDocstring(deprecatedFunction,
                           _getDeprecationDocstring(version, replacement))
        deprecatedFunction.deprecatedVersion = version
        return deprecatedFunction

    return deprecationDecorator
Shortcut context manager for getting a routing client, beginning
dataset/ETHPy150Open bokeh/bokeh/bokeh/util/deprecate.py/deprecated--crossover with--dataset/ETHPy150Open getsentry/rb/rb/cluster.py/Cluster.map