Changeset 30:d5fde7cc2958 in pyenvjasmine for pyenvjasmine/runner.py


Ignore:
Timestamp:
Jan 18, 2018, 12:57:09 PM (6 years ago)
Author:
Borja Lopez <borja@…>
Branch:
default
Phase:
public
Message:

Make some python3 compatibility changes (bytes/unicode/str mess)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyenvjasmine/runner.py

    r25 r30  
    7272
    7373    while True:
    74         output = p.stdout.readline(1)
    75         if output == '' and p.poll() is not None:
     74        output = p.stdout.readline(1).decode('utf-8')
     75        if output in ['', b''] and p.poll() is not None:
    7676            break
    7777        if output == '\n':
Note: See TracChangeset for help on using the changeset viewer.