Skip to content

Commit

Permalink
fix python3
Browse files Browse the repository at this point in the history
  • Loading branch information
clowwindy committed Jan 12, 2015
1 parent 32a6b8f commit 5e47684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@

for fd in r:
line = fd.readline()
sys.stderr.write(line)
if not line:
if stage == 2 and fd == p3.stdout:
stage = 3
if stage == 4 and fd == p4.stdout:
stage = 5
if bytes != str:
line = str(line, 'utf8')
sys.stderr.write(line)
if line.find('starting local') >= 0:
local_ready = True
if line.find('starting server') >= 0:
Expand Down

0 comments on commit 5e47684

Please sign in to comment.