parameters: (s, encoding, errors)
return_statement: return s.decode(encoding, errors)
docstring: Convert a null-terminated bytes object to a string.
docstring_summary: Convert a null-terminated bytes object to a string.
docstring_tokens: Convert a null - terminated bytes object to a string .
function: 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)
function_tokens: def nts ( s , encoding , errors ) : p = s . find ( b"\0" ) if p != - 1 : s = s [ : p ] return s . decode ( encoding , errors )