def nts(s, encoding, errors):
p = s.find(b"<STR_LIT>")<EOL>if p != -<NUM_LIT:1>:<EOL><INDENT>s = s[:p]<EOL><DEDENT>return s.decode(encoding, errors)<EOL>
Convert a null-terminated bytes object to a string.