torproject / stem

Python controller library for Tor
https://stem.torproject.org/
GNU Lesser General Public License v3.0
257 stars 75 forks source link

Fixup for Python 3.10 #110

Closed cculianu closed 2 years ago

cculianu commented 2 years ago

Closes issue #109. Long story short: a few names from collection are now moved to collection.abc exclusively starting in Python 3.10. The only name this app uses from there that was moved is collections.Iterable. Code has been added to work around this API quirk in Python 3.10.

cculianu commented 2 years ago

Hmm. I thought stem maybe supported Python 2.7. If it doesn't, and it's 3.6+ only, then I can simplify this to just import collections.abc at the top of the file and be done with it. I can push a commit now to do that.

cculianu commented 2 years ago

Ok, I force-pushed a simpler since you told me this app is 3.6+ only.