#11869: makemessages command hangs when there're many errors in the .po file
-------------------------------------------+--------------------------------
Reporter: jmv | Owner: nobody
Status: new | Milestone:
Component: Internationalization | Version: 1.1
Resolution: | Keywords: gettext, msgmerge,
popen3, i18n
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Changes (by soulburner):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
ran into the same issue (repeatable, just had a file with a lot of
error(warning because i had a lot of strings with unnamed arguments)),
from python sub-process docs
"
Warning
This will deadlock if the child process generates enough output to a
stdout or stderr pipe such that it blocks waiting for the OS pipe buffer
to accept more data. Use communicate() to avoid that.
"
so my fix was this
from subprocess import Popen, PIPE
p = Popen(cmd, shell=True,stdin=PIPE, stdout=PIPE,
stderr=PIPE)
(msgs, errors) = p.communicate()
--
Ticket URL: <http://code.djangoproject.com/ticket/11869#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---