ViennaRNA / forgi

An RNA manipulation library.
GNU General Public License v3.0
52 stars 31 forks source link

Use Mapping from collection.abc #40

Closed GabLoyer closed 1 year ago

GabLoyer commented 2 years ago

In Python 3.10, collections remove the visibility of abc classes (Mapping included), making forgi throw an ImportError on import. They were actually move to collections.abc since Python 3.3, so these changes should be retrocompatible with other Python 3 version.

If Python 2 is still supported, I can maybe wrapped it with sys.version_info condition ?

GabLoyer commented 2 years ago

I ended using the same logic that were use in another file.

Bernhard10 commented 1 year ago

Thanks for the PR.