Permalink
Browse files

Ensure spurious line ending characters on records are stripped away

  • Loading branch information...
1 parent b8c0af7 commit 9c3822d63f161cdeaad6c6ebfb0d359a8981736e @bow bow committed Jan 11, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 vcf/parser.py
View
@@ -523,7 +523,7 @@ def _parse_alt(self, str):
def next(self):
'''Return the next record in the file.'''
- line = self.reader.next()
+ line = self.reader.next().rstrip()
row = re.split(self._separator, line)
chrom = row[0]
if self._prepend_chr:

0 comments on commit 9c3822d

Please sign in to comment.