Changeset 1528
- Timestamp:
- 12/03/05 16:53:33 (3 years ago)
- Files:
-
- django/trunk/django/bin/make-messages.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/bin/make-messages.py
r1527 r1528 76 76 cmd = 'xgettext %s -d %s -L Python --keyword=gettext_noop --keyword=gettext_lazy --keyword=ngettext_lazy -o - "%s"' % ( 77 77 os.path.exists(potfile) and '--omit-header' or '', domain, os.path.join(dirpath, thefile)) 78 (stdin, stdout, stderr) = os.popen3(cmd, ' rb')78 (stdin, stdout, stderr) = os.popen3(cmd, 'b') 79 79 msgs = stdout.read() 80 80 errors = stderr.read() … … 92 92 os.unlink(os.path.join(dirpath, thefile)) 93 93 94 (stdin, stdout, stderr) = os.popen3('msguniq %s' % potfile, ' rb')94 (stdin, stdout, stderr) = os.popen3('msguniq %s' % potfile, 'b') 95 95 msgs = stdout.read() 96 96 errors = stderr.read() … … 101 101 open(potfile, 'w').write(msgs) 102 102 if os.path.exists(pofile): 103 (stdin, stdout, stderr) = os.popen3('msgmerge -q %s %s' % (pofile, potfile), ' rb')103 (stdin, stdout, stderr) = os.popen3('msgmerge -q %s %s' % (pofile, potfile), 'b') 104 104 msgs = stdout.read() 105 105 errors = stderr.read()
