0001-storage-handle-tuple-likes-in-deep_bytes2str.patch
wcs/qommon/storage.py | ||
---|---|---|
130 | 130 |
for k, v in obj.items(): |
131 | 131 |
new_d[force_str(k)] = deep_bytes2str(v, seen) |
132 | 132 |
return new_d |
133 |
if isinstance(obj, tuple): |
|
134 |
return obj.__class__(*[deep_bytes2str(x, seen) for x in obj]) |
|
133 | 135 |
if hasattr(obj, '__class__') and obj.__class__.__module__.startswith(('wcs.', 'qommon.', 'modules.')): |
134 | 136 |
obj.__dict__ = deep_bytes2str(obj.__dict__, seen) |
135 | 137 |
return obj |
136 |
- |