diff options
Diffstat (limited to 'src/mailman_pgp/config/converter.py')
| -rw-r--r-- | src/mailman_pgp/config/converter.py | 8 |
1 files changed, 4 insertions, 4 deletions
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 <http://www.gnu.org/licenses/>. -"""""" +"""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 |
