#NEWLINE# def deprecatedModuleAttribute( version , message , moduleName , name ) : #NEWLINE# #INDENT# '\n    Declare a module-level attribute as being deprecated.\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\n    @type moduleName: C{str}\n    @param moduleName: Fully-qualified Python name of the module containing\n        the deprecated attribute; if called from the same module as the\n        attributes are being deprecated in, using the C{__name__} global can\n        be helpful\n\n    @type name: C{str}\n    @param name: Attribute name to deprecate\n    ' #NEWLINE# module = sys . modules [ moduleName ] #NEWLINE# if ( not isinstance ( module , _ModuleProxy ) ) : #NEWLINE# #INDENT# module = _ModuleProxy ( module ) #NEWLINE# sys . modules [ moduleName ] = module #NEWLINE# #UNINDENT# _deprecateAttribute ( module , name , version , message )