handyman5/poodledo — pull request #9 by iandennismiller (2013-12-10 18:56:05+00:00)
Title: avoid double-decoding unicode when python behaves like python 3

I started getting the following error:

```
File "/Users/idm/.virtualenvs/greenthink/lib/python2.7/site-packages/poodledo-0.2-py2.7.egg/poodledo/toodledodata.py", line 144, in __init__
self.__dict__[elem.tag] = typemap[elem.tag](elem.text)
File "build/bdist.macosx-10.9-intel/egg/six.py", line 468, in u
return unicode(s, "unicode_escape")
TypeError: decoding Unicode is not supported
```

I think this began when I updated to OS X Mavericks, possibly related to the jump to Python 2.7. I don't know. At any rate, I think I fixed the issue by adapting a bugfix from django:

https://github.com/django-extensions/django-extensions/commit/5d330294117b0e7bb2b82f44d23ce9ef6d339724

I'm sending along a pull request with the code that worked for me. I did not test this on python 2.6 or 3.x, but I am banking on the django patch being correct for those versions.

I was hoping you could incorporate this and propagate to pypi, assuming the patch works for you too.