bicarlsen / easy-biologic

Python library for communicating with Biologic devices.
GNU General Public License v3.0
18 stars 11 forks source link

Fix coroutine creation for python 3.11 #28

Closed jdhuang-csm closed 5 months ago

jdhuang-csm commented 5 months ago

Fix for Issue #27 - asyncio.coroutine removed in Python 3.11.

bicarlsen commented 5 months ago

Have you tested this with Python versions <3.11? I'd like to stay backwards compatible for those still using older versions of Python.

If it's not backwards compatible, can you place it behind a version guard?

jdhuang-csm commented 5 months ago

I tested it in 3.10 and it worked, but to be safe I added a version guard.