def deprecate_option(key, msg=None, rkey=None, removal_ver=None):
 key = key.lower()
 if (key in _deprecated_options):
  raise OptionError(("Option '%s' has already been defined as deprecated." % key))
 _deprecated_options[key] = DeprecatedOption(key, msg, rkey, removal_ver)

def deprecate_option ( key , msg = None , rkey = None , removal_ver = None ) : key = key . lower ( ) if ( key in _deprecated_options ) : raise OptionError ( ( "Option '%s' has already been defined as deprecated." % key ) ) _deprecated_options [ key ] = DeprecatedOption ( key , msg , rkey , removal_ver )
mark option key as deprecated .