def _process_row(text, columns):
if not text:<EOL><INDENT>return<EOL><DEDENT>coldict = {k: {'<STR_LIT:start>': s,<EOL>'<STR_LIT>': l,<EOL>'<STR_LIT>': r,<EOL>'<STR_LIT>': w} for k, (s, l, r, w) in columns.items()}<EOL>item = {}<EOL>for field in coldict:<EOL><INDENT>value = _get_field(text, coldict, field)<EOL>if value is not None:<EOL><INDENT>item[field] = value<EOL><DEDENT><DEDENT>return item<EOL>
Processes a single row from the file.