mirror of https://github.com/django/django.git
fixes #1161 - added quotes to unique-messages.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1821 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d3b85e30d3
commit
7332b13239
|
@ -19,7 +19,7 @@ for (dirpath, dirnames, filenames) in os.walk(basedir):
|
||||||
if file.endswith('.po'):
|
if file.endswith('.po'):
|
||||||
sys.stderr.write('processing file %s in %s\n' % (file, dirpath))
|
sys.stderr.write('processing file %s in %s\n' % (file, dirpath))
|
||||||
pf = os.path.splitext(os.path.join(dirpath, file))[0]
|
pf = os.path.splitext(os.path.join(dirpath, file))[0]
|
||||||
cmd = 'msguniq %s.po' % pf
|
cmd = 'msguniq "%s.po"' % pf
|
||||||
stdout = os.popen(cmd)
|
stdout = os.popen(cmd)
|
||||||
msg = stdout.read()
|
msg = stdout.read()
|
||||||
open('%s.po' % pf, 'w').write(msg)
|
open('%s.po' % pf, 'w').write(msg)
|
||||||
|
|
Loading…
Reference in New Issue