diff options
| author | Barry Warsaw | 2009-01-16 21:04:21 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-01-16 21:04:21 -0500 |
| commit | ae3d0cc316b826b8325507d960ccf84da601c3b0 (patch) | |
| tree | 3485e2ca463c2131a0ffb1693bc60d569cc9d8b7 /mailman/interfaces/database.py | |
| parent | a3f7d07c62b2f7d6ac9d0b700883826c2838db60 (diff) | |
| download | mailman-ae3d0cc316b826b8325507d960ccf84da601c3b0.tar.gz mailman-ae3d0cc316b826b8325507d960ccf84da601c3b0.tar.zst mailman-ae3d0cc316b826b8325507d960ccf84da601c3b0.zip | |
Diffstat (limited to 'mailman/interfaces/database.py')
| -rw-r--r-- | mailman/interfaces/database.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mailman/interfaces/database.py b/mailman/interfaces/database.py index 27ab4bf83..4a9d6cde5 100644 --- a/mailman/interfaces/database.py +++ b/mailman/interfaces/database.py @@ -23,6 +23,8 @@ setup.py file as an entry point in the 'mailman.database' group with the name Mailman's back end. """ +from __future__ import absolute_import, unicode_literals + __metaclass__ = type __all__ = [ 'DatabaseError', @@ -49,9 +51,9 @@ class SchemaVersionMismatchError(DatabaseError): self._got = got def __str__(self): - return ( - 'Incompatible database schema version (got: %d, expected: %d)' - % (self._got, DATABASE_SCHEMA_VERSION)) + return ('Incompatible database schema version ' + '(got: {0}, expected: {1})'.format( + self._got, DATABASE_SCHEMA_VERSION)) |
