aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/config/converter.py
diff options
context:
space:
mode:
authorJ08nY2017-08-01 00:34:47 +0200
committerJ08nY2017-08-01 00:34:47 +0200
commitcce2409e111c4b29bb8739c0699885007e7b81a2 (patch)
tree5345dfc50cbc4c03aef2044ffdafe6b41dd03443 /src/mailman_pgp/config/converter.py
parent8f821848175281cc95f1e4ef1294ec6ca216c2c3 (diff)
downloadmailman-pgp-cce2409e111c4b29bb8739c0699885007e7b81a2.tar.gz
mailman-pgp-cce2409e111c4b29bb8739c0699885007e7b81a2.tar.zst
mailman-pgp-cce2409e111c4b29bb8739c0699885007e7b81a2.zip
Diffstat (limited to 'src/mailman_pgp/config/converter.py')
-rw-r--r--src/mailman_pgp/config/converter.py8
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