unbyte

function of dascore.utils.misc source

unbyte(
    byte_or_str ,
)-> ’str | _T’

Decode a bytes value, passing anything else through unchanged.

Callers use this to normalize values which may or may not have come from a binary file, so the non-bytes case is the common one.