]> git.ipfire.org Git - thirdparty/babel.git/commit
Python3 52/head
authorAlexander A. Dyshev <adyshev@gmail.com>
Fri, 23 Aug 2013 14:06:21 +0000 (17:06 +0300)
committerAlexander A. Dyshev <adyshev@gmail.com>
Fri, 23 Aug 2013 14:06:21 +0000 (17:06 +0300)
commit6c220383993f0612923387ed171b21449711c75f
tree142fbbe09d1045a21eccbd71d23510c57f64039b
parentd764b35bc3910b8f67ff811752df615afa7667f6
Python3

Without 'b' option, using python3 everybody will get during update:

bash-3.2$ pybabel update -i messages.pot -d translations
updating catalog 'translations/en/LC_MESSAGES/messages.po' based on 'messages.pot'
Traceback (most recent call last):
  File "/home/user/.pyenv/versions/3.3.2/bin/pybabel", line 9, in <module>
    load_entry_point('Babel==1.3', 'console_scripts', 'pybabel')()
  File "/home/user/.pyenv/versions/3.3.2/lib/python3.3/site-packages/babel/messages/frontend.py", line 1151, in main
    return CommandLineInterface().run(sys.argv)
  File "/home/user/.pyenv/versions/3.3.2/lib/python3.3/site-packages/babel/messages/frontend.py", line 665, in run
    return getattr(self, cmdname)(args[1:])
  File "/home/user/.pyenv/versions/3.3.2/lib/python3.3/site-packages/babel/messages/frontend.py", line 1130, in update
    width=options.width)
  File "/home/user/.pyenv/versions/3.3.2/lib/python3.3/site-packages/babel/messages/pofile.py", line 444, in write_po
    _write(comment_header + u'\n')
  File "/home/user/.pyenv/versions/3.3.2/lib/python3.3/site-packages/babel/messages/pofile.py", line 388, in _write
    fileobj.write(text)
TypeError: must be str, not bytes
babel/messages/frontend.py