Browse files

Merge pull request #137 from bow/patch_parser-line-ends

Patch for different result returned by Reader.fetch() and iteration over Reader
  • Loading branch information...
2 parents ab941e0 + a60ef2f commit e6129f5f90e58cc0bd84f57b71c3ab8ec598820c @jamescasbon committed Feb 6, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 vcf/parser.py
View
2 vcf/parser.py
@@ -524,7 +524,7 @@ def _parse_alt(self, str):
def next(self):
'''Return the next record in the file.'''
line = self.reader.next()
- row = re.split(self._separator, line)
+ row = re.split(self._separator, line.rstrip())
chrom = row[0]
if self._prepend_chr:
chrom = 'chr' + chrom

0 comments on commit e6129f5

Please sign in to comment.