parameters: (bb)
return_statement: return b"".join(result)
docstring: Convert a raw Text property value to the bytestring it represents.
  
      bb -- bytes-like object
  
      Returns a bytes object, in the same encoding as 'bb'.
  
      This interprets escape characters, and does whitespace mapping:
  
      - linebreak (LF, CR, LFCR, or CRLF) is converted to \n
      - any other whitespace character is replaced by a space
      - backslash followed by linebreak disappears
      - other backslashes disappear (but double-backslash -> single-backslash)
docstring_summary: Convert a raw Text property value to the bytestring it represents.
docstring_tokens: Convert a raw Text property value to the bytestring it represents .
function: def text_value(bb):
      """Convert a raw Text property value to the bytestring it represents.
  
      bb -- bytes-like object
  
      Returns a bytes object, in the same encoding as 'bb'.
  
      This interprets escape characters, and does whitespace mapping:
  
      - linebreak (LF, CR, LFCR, or CRLF) is converted to \n
      - any other whitespace character is replaced by a space
      - backslash followed by linebreak disappears
      - other backslashes disappear (but double-backslash -> single-backslash)
  
      """
      bb = _newline_re.sub(b"\n", bb)
      bb = bb.translate(_whitespace_table)
      is_escaped = False
      result = []
      for chunk in _chunk_re.findall(bb):
          if is_escaped:
              if chunk != b"\n":
                  result.append(chunk)
              is_escaped = False
          elif chunk == b"\\":
              is_escaped = True
          else:
              result.append(chunk)
      return b"".join(result)
function_tokens: def text_value ( bb ) : bb = _newline_re . sub ( b"\n" , bb ) bb = bb . translate ( _whitespace_table ) is_escaped = False result = [ ] for chunk in _chunk_re . findall ( bb ) : if is_escaped : if chunk != b"\n" : result . append ( chunk ) is_escaped = False elif chunk == b"\\" : is_escaped = True else : result . append ( chunk ) return b"" . join ( result )