From cce2409e111c4b29bb8739c0699885007e7b81a2 Mon Sep 17 00:00:00 2001 From: J08nY Date: Tue, 1 Aug 2017 00:34:47 +0200 Subject: Move Config to mailman_pgp.config.config. --- src/mailman_pgp/config/converter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mailman_pgp/config/converter.py') diff --git a/src/mailman_pgp/config/converter.py b/src/mailman_pgp/config/converter.py index 6f458d9..ac2cf22 100644 --- a/src/mailman_pgp/config/converter.py +++ b/src/mailman_pgp/config/converter.py @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License along with # this program. If not, see . -"""""" +"""Config conversion.""" import builtins import re from configparser import ConfigParser @@ -41,8 +41,8 @@ class ConfigConverter: out[section] = dict() for option in self.schema.options(section): out[section][option] = self._transform_option( - cfg.get(section, option), - self.schema.get(section, option)) + cfg.get(section, option), + self.schema.get(section, option)) return out def _transform_option(self, value, schema): @@ -58,7 +58,7 @@ class ConfigConverter: match = re.search(schema, value) if match is None: raise ValueError - return match + return match.group() if call is None: raise ValueError -- cgit v1.2.3-70-g09d2