Buckets:
| """ | |
| A set of methods retained from np.compat module that | |
| are still used across codebase. | |
| """ | |
| __all__ = ["asunicode", "asbytes"] | |
| def asunicode(s): | |
| if isinstance(s, bytes): | |
| return s.decode('latin1') | |
| return str(s) | |
| def asbytes(s): | |
| if isinstance(s, bytes): | |
| return s | |
| return str(s).encode('latin1') | |
Xet Storage Details
- Size:
- 329 Bytes
- Xet hash:
- 7b3a846953a7b910471074b7ab235d4c66e4d4704a49e321270ff287473ad4db
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.