From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 77A7D138301 for ; Sun, 27 Oct 2013 02:27:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 42433E0B1D; Sun, 27 Oct 2013 02:26:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DA729E0B1D for ; Sun, 27 Oct 2013 02:26:55 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BECDD33EF91 for ; Sun, 27 Oct 2013 02:26:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 749A4E401D for ; Sun, 27 Oct 2013 02:26:53 +0000 (UTC) From: "Devan Franchini" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Devan Franchini" Message-ID: <1382840231.2f6a29d8357a98bcadd7133671ba67c45b5cd4ea.twitch153@gentoo> Subject: [gentoo-commits] proj/webapp-config:experimental commit in: WebappConfig/ X-VCS-Repository: proj/webapp-config X-VCS-Files: WebappConfig/config.py X-VCS-Directories: WebappConfig/ X-VCS-Committer: twitch153 X-VCS-Committer-Name: Devan Franchini X-VCS-Revision: 2f6a29d8357a98bcadd7133671ba67c45b5cd4ea X-VCS-Branch: experimental Date: Sun, 27 Oct 2013 02:26:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 38f00a41-8a2f-47a5-b07d-2aca309ae5f9 X-Archives-Hash: 8630fbd1ce493f7291b5dcc2b2da55e9 commit: 2f6a29d8357a98bcadd7133671ba67c45b5cd4ea Author: Devan Franchini gentoo org> AuthorDate: Sun Oct 27 02:17:11 2013 +0000 Commit: Devan Franchini gentoo org> CommitDate: Sun Oct 27 02:17:11 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/webapp-config.git;a=commit;h=2f6a29d8 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. --- WebappConfig/config.py | 4 ++-- 1 file 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' \