crsmithdev/arrow — pull request #56 by shvechikov (2013-10-15 07:06:59+00:00)
Title: humanize() should return unicode instead of str

It works OK with ascii-locales like the default:

>>> print u'Now: {}'.format(arrow.now().humanize())
Now: just now

But doesn't work with non-ascii locales like Russian:

>>> print u'Now: {}'.format(arrow.now().humanize(locale='ru_RU'))
Traceback (most recent call last):
File "", line 1, in
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position 0: ordinal not in range(128)