1 |
commit: 82fa79efdbb308f0e850491e48e30db9fa4fc794 |
2 |
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 27 02:17:11 2013 +0000 |
4 |
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 29 02:16:29 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/webapp-config.git;a=commit;h=82fa79ef |
7 |
|
8 |
WebappConfig/config.py: Corrects get() function arguments. |
9 |
|
10 |
Adds *args, and **kwargs for the wrapper get() function in config.py |
11 |
in order to add the correct arguments necessary for the get() function |
12 |
in the ConfigParser class. |
13 |
|
14 |
--- |
15 |
WebappConfig/config.py | 4 ++-- |
16 |
1 file changed, 2 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/WebappConfig/config.py b/WebappConfig/config.py |
19 |
index 26eab59..c4b424b 100644 |
20 |
--- a/WebappConfig/config.py |
21 |
+++ b/WebappConfig/config.py |
22 |
@@ -58,9 +58,9 @@ class BashConfigParser(configparser_ConfigParser): |
23 |
def on_error(self, action = 0): |
24 |
self.error_action = action |
25 |
|
26 |
- def get(self, section, option): |
27 |
+ def get(self, section, option, *args, **kwargs): |
28 |
try: |
29 |
- return configparser_ConfigParser.get(self, section, option) |
30 |
+ return configparser_ConfigParser.get(self, section, option, *args, **kwargs) |
31 |
except Exception as e: |
32 |
error = '\nThere is a problem with your configuration file or' \ |
33 |
' an environment variable.\n' \ |