diff options
author | Alex Morega <alex@grep.ro> | 2014-01-06 08:47:05 -0800 |
---|---|---|
committer | Alex Morega <alex@grep.ro> | 2014-01-06 08:47:05 -0800 |
commit | d7c0ae46588e9b9aabb5e01e33a7a2a677b2827b (patch) | |
tree | 142fbbe09d1045a21eccbd71d23510c57f64039b | |
parent | d764b35bc3910b8f67ff811752df615afa7667f6 (diff) | |
parent | 6c220383993f0612923387ed171b21449711c75f (diff) | |
download | babel-d7c0ae46588e9b9aabb5e01e33a7a2a677b2827b.tar.gz |
Merge pull request #52 from adyshev/patch-1
fix `pybabel update` on py3
-rwxr-xr-x | babel/messages/frontend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/babel/messages/frontend.py b/babel/messages/frontend.py index 144bc98..86274e0 100755 --- a/babel/messages/frontend.py +++ b/babel/messages/frontend.py @@ -1121,7 +1121,7 @@ class CommandLineInterface(object): tmpname = os.path.join(os.path.dirname(filename), tempfile.gettempprefix() + os.path.basename(filename)) - tmpfile = open(tmpname, 'w') + tmpfile = open(tmpname, 'wb') try: try: write_po(tmpfile, catalog, |