From c24cc62fef14a657148a69b3b047498f1dbb1385 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 13 Jun 2018 11:52:52 +0100 Subject: [PATCH] remove newline from line before splitting with tabs --- src/parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse.py b/src/parse.py index 61bc8e1..af70d1a 100644 --- a/src/parse.py +++ b/src/parse.py @@ -45,7 +45,7 @@ class Parse(object): fname = os.path.join(pth, fname) with open(fname) as pinmapfile: for lineno, line in enumerate(pinmapfile): - line1 = line.split('\t') + line1 = line[:-1].split('\t') if len(line1) <= 1: continue self.pinnumbers.append(int(line1[0])) -- 2.30.2