unichr arg not in range

The last changeset on dev breaks Hatta on my Mac:

Traceback (most recent call last):
  File "./dev.py", line 8, in <module>
    import hatta
  File "/Users/ben/Python/hatta-dev/hatta.py", line 630, in <module>
    class WikiParser(object):
  File "/Users/ben/Python/hatta-dev/hatta.py", line 692, in WikiParser
    u''.join(unichr(i) for i in xrange(120779)
  File "/Users/ben/Python/hatta-dev/hatta.py", line 693, in <genexpr>
    if unicodedata.category(unichr(i))=='Lu'))
ValueError: unichr() arg not in range(0x10000) (narrow Python build)
$ python
Python 2.6.1 (r261:67515, Jul  7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

Please advise.

Ben

Thank you for your report, it should be fixed in revision http://hg.hatta-wiki.org/hatta-dev/rev/d973b363d32e

– Radomir Dopieralski


Confirmed as fixed, thanks.

Ben


Issues, Fixed Bugs