summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Morega <alex@grep.ro>2014-01-06 08:47:05 -0800
committerAlex Morega <alex@grep.ro>2014-01-06 08:47:05 -0800
commitd7c0ae46588e9b9aabb5e01e33a7a2a677b2827b (patch)
tree142fbbe09d1045a21eccbd71d23510c57f64039b
parentd764b35bc3910b8f67ff811752df615afa7667f6 (diff)
parent6c220383993f0612923387ed171b21449711c75f (diff)
downloadbabel-d7c0ae46588e9b9aabb5e01e33a7a2a677b2827b.tar.gz
Merge pull request #52 from adyshev/patch-1
fix `pybabel update` on py3
-rwxr-xr-xbabel/messages/frontend.py2
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,