torproject / stem

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

Python 3.11 compatibility fix for deprecated coroutine decorator #128

Closed ghost closed 1 year ago

ghost commented 1 year ago

The code to run ainit constructors in the Synchronous mixin was using the deprecated asyncio.coroutine() decorator, which was fully removed in Python 3.11. Thankfully we can use the same approach for ainit that this same class uses below for wrapping generators.

atagar commented 1 year ago

Hi Beth. Sorry for the long delay and thanks for the fix! Merged.