Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added 'b' modifier to popen3 calls in make-messages.py to help gettin…

…g it to run with windows

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1527 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 90ff261fbc4b80841bde7a5b7aeaf26fb794f904 1 parent 027c47b
authored December 03, 2005

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  django/bin/make-messages.py
6  django/bin/make-messages.py
@@ -75,7 +75,7 @@
75 75
                 if verbose: sys.stdout.write('processing file %s in %s\n' % (file, dirpath))
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, 'r')
  78
+                (stdin, stdout, stderr) = os.popen3(cmd, 'rb')
79 79
                 msgs = stdout.read()
80 80
                 errors = stderr.read()
81 81
                 if errors: 
@@ -91,7 +91,7 @@
91 91
                 if thefile != file:
92 92
                     os.unlink(os.path.join(dirpath, thefile))
93 93
 
94  
-    (stdin, stdout, stderr) = os.popen3('msguniq %s' % potfile, 'r')
  94
+    (stdin, stdout, stderr) = os.popen3('msguniq %s' % potfile, 'rb')
95 95
     msgs = stdout.read()
96 96
     errors = stderr.read()
97 97
     if errors:
@@ -100,7 +100,7 @@
100 100
         sys.exit(8)
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), 'r')
  103
+        (stdin, stdout, stderr) = os.popen3('msgmerge -q %s %s' % (pofile, potfile), 'rb')
104 104
         msgs = stdout.read()
105 105
         errors = stderr.read()
106 106
         if errors:

0 notes on commit 90ff261

Please sign in to comment.
Something went wrong with that request. Please try again.