pouchdb.utils.quote fails with unicode characters on Python 2.7.X
bmihelac opened this issue · 0 comments
bmihelac commented
unicode
is not str
under python 2.7.X.
Error is:
ERROR: test_quote (__main__.UtilsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests.py", line 491, in test_quote
self.assertEqual(couchdb.utils.quote('Š'), '%C5%A0')
File "/Users/bmihelac/dev/django/tmp/py-couchdb/pycouchdb/utils.py", line 55, in quote
return _quote(data, safe)
File "/opt/boxen/homebrew/Cellar/python/2.7.3-boxen2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 1268, in quote
return ''.join(map(quoter, s))
KeyError: u'\u0160'