From 710277a7ec626980ed0107921346876e1a7b46be Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 22 Sep 2014 17:38:00 -0400 Subject: Pass all tests with PYTHONWARNINGS=error. * Switch away from a deprecated unittest method. * Switch away from using deprecated Exceptions.message attribute. * Decode the bytes b32 encoded X-Message-ID-Hash header into a Unicode. * Fix a rather glaring bug in Pendings.add() where we were actually not properly coercing bytes to unicode for the keys and values! I guess it's a good thing that SQLAlchemy is more strict than Storm. * Some cosmetic fixes. --- src/mailman/interfaces/messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mailman/interfaces/messages.py') diff --git a/src/mailman/interfaces/messages.py b/src/mailman/interfaces/messages.py index 4980a4f9d..7b99578c4 100644 --- a/src/mailman/interfaces/messages.py +++ b/src/mailman/interfaces/messages.py @@ -83,7 +83,7 @@ class IMessageStore(Interface): def get_message_by_hash(message_id_hash): """Return the message with the matching X-Message-ID-Hash. - + :param message_id_hash: The X-Message-ID-Hash header contents to search for. :returns: The message, or None if no matching message was found. -- cgit v1.2.3-70-g09d2