Python package for building, comparing, annotating, manipulating and visualising trees. It provides a comprehensive API and a collection of command line tools, including utilities to work with the NCBI taxonomy tree.
A recent commit (7024539) introduced a bug which broke the ability to load the NCBI taxonomy by running ete4.NCBITaxa().
This PR fixes that bug by making sure that str.join gets a list as its single parameter. I also refactored the function slightly while I was at it to use the more pythonic context manager rather than manually opening and closing the file handle and to reduce code duplication.
All 5 tests pass after running python -m unittest tests.test_ncbiquery
A recent commit (7024539) introduced a bug which broke the ability to load the NCBI taxonomy by running
ete4.NCBITaxa()
. This PR fixes that bug by making sure thatstr.join
gets a list as its single parameter. I also refactored the function slightly while I was at it to use the more pythonic context manager rather than manually opening and closing the file handle and to reduce code duplication.All 5 tests pass after running
python -m unittest tests.test_ncbiquery