[med-svn] [Git][med-team/python-pyfaidx][upstream] New upstream version 0.5.5.2
Andreas Tille
gitlab at salsa.debian.org
Sat Oct 27 06:17:52 BST 2018
Andreas Tille pushed to branch upstream at Debian Med / python-pyfaidx
Commits:
064d13a0 by Andreas Tille at 2018-10-27T05:08:14Z
New upstream version 0.5.5.2
- - - - -
2 changed files:
- .travis.yml
- pyfaidx/__init__.py
Changes:
=====================================
.travis.yml
=====================================
@@ -1,7 +1,9 @@
language: python
-sudo: false
+sudo: required
+dist: xenial
python:
- 'nightly'
+ - '3.7'
- '3.6'
- '3.5'
- '3.4'
@@ -36,7 +38,7 @@ deploy:
secure: MbSaeuitkVTZqxa0PJ3RcR1aMf+B/sMbcx2sWOo9xfLlRFDFpYWJZ0EfXWEhrVu2YWXpBsasgunTDWSi0jNcZMH92MzOC+UTVYr45LO5sy6hm4iSiAgm/DPgYWdjP0SFKr7eL/HWPS+gHvgkXL1upleX21O358bxaezoasuKFvs=
on:
all_branches: true
- python: 2.7
+ python: 3.6
tags: true
repo: mdshw5/pyfaidx
matrix:
=====================================
pyfaidx/__init__.py
=====================================
@@ -25,7 +25,7 @@ if sys.version_info > (3, ):
dna_bases = re.compile(r'([ACTGNactgnYRWSKMDVHBXyrwskmdvhbx]+)')
-__version__ = '0.5.5.1'
+__version__ = '0.5.5.2'
class KeyFunctionError(ValueError):
@@ -813,7 +813,7 @@ class FastaRecord(object):
raise
def __iter__(self):
- """ Construct a line-based iterator that respects the original line lengths. """
+ """ Construct a line-based generator that respects the original line lengths. """
line_len = self._fa.faidx.index[self.name].lenc
start = 0
while True:
@@ -822,11 +822,11 @@ class FastaRecord(object):
yield self[start:end]
else:
yield self[start:]
- raise StopIteration
+ return
start += line_len
def __reversed__(self):
- """ Reverse line-based iterator """
+ """ Reverse line-based generator """
line_len = self._fa.faidx.index[self.name].lenc
# have to determine last line length
last_line = len(self) % line_len
@@ -839,7 +839,7 @@ class FastaRecord(object):
yield self[start:end][::-1]
else:
yield self[:end][::-1]
- raise StopIteration
+ return
if end == len(self): # first iteration
end -= last_line
else:
View it on GitLab: https://salsa.debian.org/med-team/python-pyfaidx/commit/064d13a05e47d4a340dbbb54ed201fa4dc304112
--
View it on GitLab: https://salsa.debian.org/med-team/python-pyfaidx/commit/064d13a05e47d4a340dbbb54ed201fa4dc304112
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20181027/1b9c74b8/attachment-0001.html>
More information about the debian-med-commit
mailing list