libconfig.Config.lock_option

Config.lock_option(key, subkey)

Make an option unmutable.

Parameters:
  • key (str) – First identifier of the option.
  • subkey (str) – Second identifier of the option.
Raise:
NotRegisteredError:
 If key or subkey do not define any option.