249-asciireader #250

Merged
dominik merged 2 commits from 249-asciireader into master 2024-02-20 16:19:23 +00:00
Showing only changes of commit 43f86a6c29 - Show all commits

View File

@ -49,7 +49,7 @@ class AsciiReader:
with self.fname.open('r') as f:
for i, line in enumerate(islice(f, len(self.header)+len(self.lines), num_lines)):
line = line.strip('\n\t\r, ')
line = re.sub(r'[\t ;,] *', ';', line)
line = re.sub(r'[\t ;,]+', ';', line)
line = line.split(';')
try: