wichert / lingua

Translation toolkit for Python
Other
45 stars 32 forks source link

lingua 4.10 fails with Python3 due to non-existing unicode() function #82

Closed omarkohl closed 7 years ago

omarkohl commented 7 years ago

In lingua 4.10 we find the new line output.write(unicode(catalog)) . This is not valid Python3 because the global unicode() function has been removed.

Traceback (most recent call last):
  File ".../bin/pot-create", line 11, in <module>
    sys.exit(main())
  File ".../lib/python3.4/site-packages/lingua/extract.py", line 359, in main
    save_catalog(catalog, options.output)
  File ".../lib/python3.4/site-packages/lingua/extract.py", line 236, in save_catalog
    output.write(unicode(catalog))
NameError: name 'unicode' is not defined
omarkohl commented 7 years ago

Wow that was quick! Thanks!