#NEWLINE# def _deprecateAttribute( proxy , name , version , message ) : #NEWLINE# #INDENT# '\n    Mark a module-level attribute as being deprecated.\n\n    @type proxy: L{_ModuleProxy}\n    @param proxy: The module proxy instance proxying the deprecated attributes\n\n    @type name: C{str}\n    @param name: Attribute name\n\n    @type version: L{twisted.python.versions.Version}\n    @param version: Version that the attribute was deprecated in\n\n    @type message: C{str}\n    @param message: Deprecation message\n    ' #NEWLINE# _module = object . __getattribute__ ( proxy , '_module' ) #NEWLINE# attr = _DeprecatedAttribute ( _module , name , version , message ) #NEWLINE# _deprecatedAttributes = object . __getattribute__ ( proxy , '_deprecatedAttributes' ) #NEWLINE# _deprecatedAttributes [ name ] = attr