~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/symbol_versioning.py

Bugfix the symbol_versioning deprecation decorators to update the
__module__ attribute of methods and functions. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
    """
111
111
    _decorate_docstring(callable, deprecation_version, label,
112
112
                        decorated_callable)
 
113
    decorated_callable.__module__ = callable.__module__
113
114
    decorated_callable.__name__ = callable.__name__