Files
nixpkgs/pkgs/development/python-modules/biopython/close_parser_on_time.patch
Markus Kowalewski 95aa3d12c6 Revert "python3Packages.biopython: 1.83 -> 1.84"
This reverts commit a30bd9c199.
2024-11-08 10:27:23 +01:00

19 lines
600 B
Diff

diff --git a/Bio/SeqIO/SeqXmlIO.py b/Bio/SeqIO/SeqXmlIO.py
index 8fe75ebb728..6758317d05f 100644
--- a/Bio/SeqIO/SeqXmlIO.py
+++ b/Bio/SeqIO/SeqXmlIO.py
@@ -498,11 +498,12 @@ def iterate(self, handle):
if not text:
break
parser.feed(text)
+ # Closing the parser ensures that all XML data fed into it are processed
+ parser.close()
# We have reached the end of the XML file;
# send out the remaining records
yield from records
records.clear()
- parser.close()
class SeqXmlWriter(SequenceWriter):