added docstring for is_modifiable()

This commit is contained in:
Jimbo77 2012-11-18 22:56:32 -08:00
parent c4955ebddd
commit 74ed5acf7d
1 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,7 @@ a SimpleConfig instance then reads the wallet file.
def get(self, key, default=None): def get(self, key, default=None):
"""Retrieve the filepath of the configuration file specified in the 'key' parameter.""" """Retrieve the filepath of the configuration file specified in the 'key' parameter."""
# 1. command-line options always override everything # 1. command-line options always override everything
if self.options_config.has_key(key) and self.options_config.get(key) is not None: if self.options_config.has_key(key) and self.options_config.get(key) is not None:
out = self.options_config.get(key) out = self.options_config.get(key)
@ -98,6 +98,7 @@ a SimpleConfig instance then reads the wallet file.
def is_modifiable(self, key): def is_modifiable(self, key):
"""Check if the config file is modifiable."""
if self.options_config.has_key(key): if self.options_config.has_key(key):
return False return False
elif self.user_config.has_key(key): elif self.user_config.has_key(key):