(data)
| 75 | |
| 76 | @staticmethod |
| 77 | def unpack(data): |
| 78 | b = _Bytes.unpack(data) |
| 79 | if sys.version_info.major < 3: |
| 80 | # return unicode(b) #might be correct for python2 but would complicate tests for python3 |
| 81 | return b |
| 82 | else: |
| 83 | if b is None: |
| 84 | return b |
| 85 | return b.decode("utf-8") |
| 86 | |
| 87 | |
| 88 | class _Null(object): |