python-bonobo / bonobo

Extract Transform Load for Python 3.5+
https://www.bonobo-project.org/
Apache License 2.0
1.58k stars 143 forks source link

python 3.10 fix #410

Open veszig opened 2 years ago

veszig commented 2 years ago

Minor fix for a python 3.10 issue: Sequence was moved from collections to collections.abc, so an import has to be changed.

slanderaan commented 2 years ago

@veszig I forked this due to experiencing this issue as well. I'd suggest that we add a conditional import so that this works with previous versions.


if sys.version_info > (version_number,):
    import module1
else:
    import module2