pagekite/Mailpile — pull request #226 by ulikoehler (2013-10-26 22:07:59+00:00)
Title: Use isinstance() for unicode checking, instead of type() comparison

In the hash functions in util.py, added a missing unit test and use *isinstance(s, unicode)* instead of *type(s) == type(unicode)*. This makes it more flexible. See e.g. http://stereochro.me/ideas/type-vs-isinstance for arguments why you should use isinstance.