Repository navigation
StopIteration fixes for Python 3.7 - #1695
Merged
Merged
Conversation
Still using this as an internal end-of-file, thus end-of-iteration signal, which is perhaps not ideal. See https://www.python.org/dev/peps/pep-0479/
Reported as Biopython GitHub issue biopython#1693 via Fedora packaging work for Python 3.7. The StopIteration from the Nexus comment parsing could propogate up to AlignIO and cause a failure there too. See: biopython#1693 This is in some way triggered by the changes for PEP479, where inappropriate StopIteration exceptions get turned into RuntimeError exceptions instead, see: https://www.python.org/dev/peps/pep-0479/
Member
Author
|
@cbrueffer (cross reference #1327) or @odoublewen (see #1001), could you review this please? Ideally ASAP, as I'd like to include it in Biopython 1.72 which I hoped to release tomorrow. |
Codecov Report
@@ Coverage Diff @@
## master #1695 +/- ##
==========================================
+ Coverage 84.25% 85.53% +1.27%
==========================================
Files 326 327 +1
Lines 49997 50052 +55
==========================================
+ Hits 42126 42813 +687
+ Misses 7871 7239 -632
Continue to review full report at Codecov.
|
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request addresses issue #1693 (or at least, the non-ARM parts of it).
As far as I can tell, the remaining instances of
raise StopIterationare safe(e.g. within
__next__methods which is appropriate).I hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.
I have read the
CONTRIBUTING.rstfile and understand that AppVeyor andTravisCI will be used to confirm the Biopython unit tests and
flake8stylechecks pass with these changes.
I have added my name to the alphabetical contributors listings in the files
NEWS.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)