(self, whitespace)
return c
Skip spaces and line feeds and NUL; return last whitespace char
Skip spaces and line feeds and NUL; return last whitespace char
Skip spaces and line feeds and NUL ; return last whitespace char
def _skip_whitespace(self, whitespace):
        """Skip spaces and line feeds and NUL; return last whitespace char """
        c = b''
        while True:
            next_char = self.peek(1)
            if not next_char or next_char not in whitespace:
                break
            # drop whitespace char
            c = self.read_one()
            # LF causes following CR to be dropped
            if c == b'\n' and self.peek(1) == b'\r':
                # LFCR: drop the CR, report as LF
                # on disk devices, this means LFCRLF is reported as LF
                self.read_one()
        return c
def _skip_whitespace ( self , whitespace ) : c = b'' while True : next_char = self . peek ( 1 ) if not next_char or next_char not in whitespace : break # drop whitespace char c = self . read_one ( ) # LF causes following CR to be dropped if c == b'\n' and self . peek ( 1 ) == b'\r' : # LFCR: drop the CR, report as LF # on disk devices, this means LFCRLF is reported as LF self . read_one ( ) return c