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/database/pending.py | |
| parent | a3f7d07c62b2f7d6ac9d0b700883826c2838db60 (diff) | |
| download | mailman-ae3d0cc316b826b8325507d960ccf84da601c3b0.tar.gz mailman-ae3d0cc316b826b8325507d960ccf84da601c3b0.tar.zst mailman-ae3d0cc316b826b8325507d960ccf84da601c3b0.zip | |
Diffstat (limited to 'mailman/database/pending.py')
| -rw-r--r-- | mailman/database/pending.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mailman/database/pending.py b/mailman/database/pending.py index dc82085a2..75555b976 100644 --- a/mailman/database/pending.py +++ b/mailman/database/pending.py @@ -17,6 +17,8 @@ """Implementations of the IPendable and IPending interfaces.""" +from __future__ import absolute_import, unicode_literals + __metaclass__ = type __all__ = [ 'Pended', @@ -122,8 +124,8 @@ class Pendings: value = u'__builtin__.bool\1%s' % value elif type(value) is list: # We expect this to be a list of strings. - value = u'mailman.database.pending.unpack_list\1%s' % ( - '\2'.join(value)) + value = ('mailman.database.pending.unpack_list\1' + + '\2'.join(value)) keyval = PendedKeyValue(key=key, value=value) pending.key_values.add(keyval) config.db.store.add(pending) @@ -135,7 +137,7 @@ class Pendings: if pendings.count() == 0: return None assert pendings.count() == 1, ( - 'Unexpected token count: %d' % pendings.count()) + 'Unexpected token count: {0}'.format(pendings.count())) pending = pendings[0] pendable = UnpendedPendable() # Find all PendedKeyValue entries that are associated with the pending |
