Django

Code

Changeset 1527

Show
Ignore:
Timestamp:
12/03/05 13:04:31 (3 years ago)
Author:
hugo
Message:

added 'b' modifier to popen3 calls in make-messages.py to help getting it to run with windows

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/bin/make-messages.py

    r1366 r1527  
    7676                cmd = 'xgettext %s -d %s -L Python --keyword=gettext_noop --keyword=gettext_lazy --keyword=ngettext_lazy -o - "%s"' % ( 
    7777                    os.path.exists(potfile) and '--omit-header' or '', domain, os.path.join(dirpath, thefile)) 
    78                 (stdin, stdout, stderr) = os.popen3(cmd, 'r') 
     78                (stdin, stdout, stderr) = os.popen3(cmd, 'rb') 
    7979                msgs = stdout.read() 
    8080                errors = stderr.read() 
     
    9292                    os.unlink(os.path.join(dirpath, thefile)) 
    9393 
    94     (stdin, stdout, stderr) = os.popen3('msguniq %s' % potfile, 'r') 
     94    (stdin, stdout, stderr) = os.popen3('msguniq %s' % potfile, 'rb') 
    9595    msgs = stdout.read() 
    9696    errors = stderr.read() 
     
    101101    open(potfile, 'w').write(msgs) 
    102102    if os.path.exists(pofile): 
    103         (stdin, stdout, stderr) = os.popen3('msgmerge -q %s %s' % (pofile, potfile), 'r') 
     103        (stdin, stdout, stderr) = os.popen3('msgmerge -q %s %s' % (pofile, potfile), 'rb') 
    104104        msgs = stdout.read() 
    105105        errors = stderr.read()