Changeset 13854


Ignore:
Timestamp:
Oct 25, 2019 12:18:39 PM (4 weeks ago)
Author:
aramle
Message:

#5819 Making decode symmetric to encode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • PyFMI/trunk/src/pyfmi/fmi_util.pyx

    r13832 r13854  
    3838cpdef decode(x):
    3939    if python3_flag:
    40         return x.decode()
     40        if isinstance(x, bytes):
     41            return x.decode()
     42        else:
     43            return x
    4144    else:
    4245        return x
Note: See TracChangeset for help on using the changeset viewer.