Changeset 6359063 in rtems-tools for rtemstoolkit/execute.py


Ignore:
Timestamp:
Mar 9, 2016, 3:39:43 AM (5 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11
Children:
3e9b179
Parents:
4001a74
Message:

Python 2 and python 3 refactor fixes.

Updates #2619.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/execute.py

    r4001a74 r6359063  
    186186                    if len(data) == 0:
    187187                        break
    188                     if type(data) == bytes:
     188                    # str and bytes are the same type in Python2
     189                    if type(data) is not str and type(data) is bytes:
    189190                        data = data.decode(sys.stdout.encoding)
    190191                    for c in data:
Note: See TracChangeset for help on using the changeset viewer.