jdidion / atropos

An NGS read trimming tool that is specific, sensitive, and speedy. (production)
Other
120 stars 15 forks source link

Make code compatible with Python 3.10 #131

Closed jmarshall closed 2 years ago

jmarshall commented 2 years ago

Import ABCs from collections.abc. These classes are no longer available in collections in 3.10.

The collections.abc module was introduced in 3.3, and atropos supports only Python >= 3.3 (according to the check in setup.py), so fortunately there is no need to make this conditional.

(See also bioconda/bioconda-recipes#36914 which applies this patch to the bioconda atropos package.)