def deprecatedModuleAttribute(version, message, moduleName, name):
 module = sys.modules[moduleName]
 if (not isinstance(module, _ModuleProxy)):
  module = _ModuleProxy(module)
  sys.modules[moduleName] = module
 _deprecateAttribute(module, name, version, message)

def deprecatedModuleAttribute ( version , message , moduleName , name ) : module = sys . modules [ moduleName ] if ( not isinstance ( module , _ModuleProxy ) ) : module = _ModuleProxy ( module ) sys . modules [ moduleName ] = module _deprecateAttribute ( module , name , version , message )
declare a module-level attribute as being deprecated .