evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / biopython / close_parser_on_time.patch
blob05d22e22ed9e6873c7ed52abfbae54ccc4a823b6
1 diff --git a/Bio/SeqIO/SeqXmlIO.py b/Bio/SeqIO/SeqXmlIO.py
2 index 8fe75ebb728..6758317d05f 100644
3 --- a/Bio/SeqIO/SeqXmlIO.py
4 +++ b/Bio/SeqIO/SeqXmlIO.py
5 @@ -498,11 +498,12 @@ def iterate(self, handle):
6 if not text:
7 break
8 parser.feed(text)
9 + # Closing the parser ensures that all XML data fed into it are processed
10 + parser.close()
11 # We have reached the end of the XML file;
12 # send out the remaining records
13 yield from records
14 records.clear()
15 - parser.close()
18 class SeqXmlWriter(SequenceWriter):