]> khamidou — GitHub mirrors - flanker.git/commit
Subject wrapper should inherit from unicode, not str.
authorChristine Spang <christine@spang.cc>
Wed, 20 Nov 2013 04:41:57 +0000 (20:41 -0800)
committerChristine Spang <christine@spang.cc>
Wed, 20 Nov 2013 04:41:59 +0000 (20:41 -0800)
commit36ffb71420a9643be3c38d1250bfd191ccaa86f2
tree924b439f4d6cffff0f68a431aa1b99a0e2ab3da3
parent40c47c1cb0a1c815c295c607f492974e3b5ca7d3
Subject wrapper should inherit from unicode, not str.

This wrapper is used in the implementation of clean_subject(). Since all
headers are returned as unicode objects, it will cause a
UnicodeDecodeError if the subject contains unicode and clean_subject()
is called.
flanker/mime/message/headers/wrappers.py