This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
def fix(file, sep, nf, output): | |
"""Checks and fixes prematurely terminated lines in a tabular file. | |
:param file: input file | |
:param sep: delimiter or its ASCII **octal** code | |
:param nf: expected number of fields | |
:param output: output file | |
:return: None |
NewerOlder