(s, encoding, errors)
return s.decode(encoding, errors)
Convert a null-terminated bytes object to a string.
Convert a null-terminated bytes object to a string.
Convert a null - terminated bytes object to a string .
def nts(s, encoding, errors):
    """Convert a null-terminated bytes object to a string.
    """
    p = s.find(b"\0")
    if p != -1:
        s = s[:p]
    return s.decode(encoding, errors)
def nts ( s , encoding , errors ) : p = s . find ( b"\0" ) if p != - 1 : s = s [ : p ] return s . decode ( encoding , errors )