diff options
| author | Barry Warsaw | 2017-07-22 03:02:06 +0000 |
|---|---|---|
| committer | Barry Warsaw | 2017-07-22 03:02:06 +0000 |
| commit | 02826321d0430d7ffc1f674eeff4221941689ef7 (patch) | |
| tree | 1a8e56dff0eab71e58e5fc9ecc5f3c614d7edca7 /src/mailman/testing/helpers.py | |
| parent | f54c045519300f6f70947d1114f46c2b8ae0d368 (diff) | |
| parent | f00b94f18e1d82d1488cbcee6053f03423bc2f49 (diff) | |
| download | mailman-02826321d0430d7ffc1f674eeff4221941689ef7.tar.gz mailman-02826321d0430d7ffc1f674eeff4221941689ef7.tar.zst mailman-02826321d0430d7ffc1f674eeff4221941689ef7.zip | |
Diffstat (limited to 'src/mailman/testing/helpers.py')
| -rw-r--r-- | src/mailman/testing/helpers.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mailman/testing/helpers.py b/src/mailman/testing/helpers.py index af844d214..8bb8e8bdd 100644 --- a/src/mailman/testing/helpers.py +++ b/src/mailman/testing/helpers.py @@ -345,9 +345,9 @@ class configuration: self._values = kws.copy() def _apply(self): - lines = ['[{0}]'.format(self._section)] + lines = ['[{}]'.format(self._section)] for key, value in self._values.items(): - lines.append('{0}: {1}'.format(key, value)) + lines.append('{}: {}'.format(key, value)) config.push(self._uuid, NL.join(lines)) def _remove(self): @@ -355,6 +355,7 @@ class configuration: def __enter__(self): self._apply() + return self def __exit__(self, *exc_info): self._remove() |
