Project

General

Profile

« Previous | Next » 

Revision 5433

csvs.py: TsvReader.next(): Renamed raw_contents var to line, since this is just the line with the ending removed

View differences:

lib/csvs.py
60 60
            line = self.stream.readline()
61 61
            if line == '': raise StopIteration
62 62
            
63
            raw_contents, ending = strings.extract_line_ending(line)
64
            contents = strings.remove_suffix(escape, raw_contents)
63
            line, ending = strings.extract_line_ending(line)
64
            contents = strings.remove_suffix(escape, line)
65 65
            record += contents
66
            if len(contents) == len(raw_contents): break # no line continuation
66
            if len(contents) == len(line): break # no line continuation
67 67
            record += ending_placeholder
68 68
        
69 69
        # Prevent "new-line character seen in unquoted field" errors

Also available in: Unified diff