diff options
author | Devan Franchini <twitch153@gentoo.org> | 2013-10-26 22:17:11 -0400 |
---|---|---|
committer | Devan Franchini <twitch153@gentoo.org> | 2013-10-28 22:16:29 -0400 |
commit | 82fa79efdbb308f0e850491e48e30db9fa4fc794 (patch) | |
tree | 6d2fcc6c9e5ff2c03c9a18ab95e58269d0b4d05e | |
parent | WebappConfig/compat.py: Revamps create_md5() function. (diff) | |
download | webapp-config-82fa79efdbb308f0e850491e48e30db9fa4fc794.tar.gz webapp-config-82fa79efdbb308f0e850491e48e30db9fa4fc794.tar.bz2 webapp-config-82fa79efdbb308f0e850491e48e30db9fa4fc794.zip |
WebappConfig/config.py: Corrects get() function arguments.
Adds *args, and **kwargs for the wrapper get() function in config.py
in order to add the correct arguments necessary for the get() function
in the ConfigParser class.
-rw-r--r-- | WebappConfig/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WebappConfig/config.py b/WebappConfig/config.py index 26eab59..c4b424b 100644 --- a/WebappConfig/config.py +++ b/WebappConfig/config.py @@ -58,9 +58,9 @@ class BashConfigParser(configparser_ConfigParser): def on_error(self, action = 0): self.error_action = action - def get(self, section, option): + def get(self, section, option, *args, **kwargs): try: - return configparser_ConfigParser.get(self, section, option) + return configparser_ConfigParser.get(self, section, option, *args, **kwargs) except Exception as e: error = '\nThere is a problem with your configuration file or' \ ' an environment variable.\n' \ |