jbuitt / nwws-python-client

Python client for downloading products from NOAA Weather Wire
https://github.com/jbuitt/nwws-python-client
MIT License
10 stars 10 forks source link

Fix Python 3.10 issues with changes in the libraries #5

Closed ScanCaster closed 1 year ago

ScanCaster commented 1 year ago

This is a fix for the errors in re mutable ordered sets issues.

NOTE: THIS IS FOR PYTHON 3.10 and greater ONLY!

Python to 3.9 is fine...

This is HACK to make things work quick and easy with minimal code changes if the collections lib is used elsewhere then the import is under the expected name.

This LIKELY NEEDS to have some sort of logic possibly to determine if the user is running on 3.10

!! pseudo code !!!

import sys

If pyvers=3.10 then import collections.abc collections = collections.abc

else import collections

jbuitt commented 1 year ago

Closing since the collections fix needs to happen in the SleekXMPP library.