summaryrefslogtreecommitdiff
path: root/django/bin
diff options
context:
space:
mode:
authorGeorg Bauer <gb@hugo.westfalen.de>2005-12-03 22:53:33 +0000
committerGeorg Bauer <gb@hugo.westfalen.de>2005-12-03 22:53:33 +0000
commit946bd1e370148efe6ae2da493f000373fa6a35a7 (patch)
tree7a63549c07fd8008885670385811d09847ac951b /django/bin
parent90ff261fbc4b80841bde7a5b7aeaf26fb794f904 (diff)
downloaddjango-946bd1e370148efe6ae2da493f000373fa6a35a7.tar.gz
again fix for the popen3 calls in make-messages.py - thx. Olivier
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1528 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/bin')
-rwxr-xr-xdjango/bin/make-messages.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/bin/make-messages.py b/django/bin/make-messages.py
index 3ee60cee55..92f6cbfd9a 100755
--- a/django/bin/make-messages.py
+++ b/django/bin/make-messages.py
@@ -75,7 +75,7 @@ for lang in languages:
if verbose: sys.stdout.write('processing file %s in %s\n' % (file, dirpath))
cmd = 'xgettext %s -d %s -L Python --keyword=gettext_noop --keyword=gettext_lazy --keyword=ngettext_lazy -o - "%s"' % (
os.path.exists(potfile) and '--omit-header' or '', domain, os.path.join(dirpath, thefile))
- (stdin, stdout, stderr) = os.popen3(cmd, 'rb')
+ (stdin, stdout, stderr) = os.popen3(cmd, 'b')
msgs = stdout.read()
errors = stderr.read()
if errors:
@@ -91,7 +91,7 @@ for lang in languages:
if thefile != file:
os.unlink(os.path.join(dirpath, thefile))
- (stdin, stdout, stderr) = os.popen3('msguniq %s' % potfile, 'rb')
+ (stdin, stdout, stderr) = os.popen3('msguniq %s' % potfile, 'b')
msgs = stdout.read()
errors = stderr.read()
if errors:
@@ -100,7 +100,7 @@ for lang in languages:
sys.exit(8)
open(potfile, 'w').write(msgs)
if os.path.exists(pofile):
- (stdin, stdout, stderr) = os.popen3('msgmerge -q %s %s' % (pofile, potfile), 'rb')
+ (stdin, stdout, stderr) = os.popen3('msgmerge -q %s %s' % (pofile, potfile), 'b')
msgs = stdout.read()
errors = stderr.read()
if errors: