Commit 11bb2c8a authored by Nicolas Dumazet's avatar Nicolas Dumazet

doc-only: explain why we use a while construct here


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29611 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f41ec8c0
......@@ -459,6 +459,10 @@ class TemplateTool (BaseTool):
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
# "for line in process.stdout" is cleaner but is buffered,
# see http://bugs.python.org/issue3907
# We use this ugly construct to avoid waiting for test
# termination before printing content
while True:
line = process.stdout.readline()
if not line:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment