Python 3.11 compatibility fix for deprecated coroutine decorator
commit89b0a288fe9d012cc27a3f94c38f0e8f0f6f76cf
authorMicah Elizabeth Scott <beth@torproject.org>
Thu, 19 Jan 2023 01:53:29 +0000 (18 17:53 -0800)
committerDamian Johnson <atagar@torproject.org>
Thu, 26 Jan 2023 23:46:40 +0000 (26 15:46 -0800)
tree17feb7fd0e53bc67a337f671ff4f4836fed0b0ae
parent4e3917c8651e87e78e7e1ae9fcd9bb5367dee360
Python 3.11 compatibility fix for deprecated coroutine decorator

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.
stem/util/asyncio.py