boyan-soubachov / tastyworks_api

An unofficial, reverse-engineered Python API for tastyworks.
Apache License 2.0
209 stars 79 forks source link

Switch to asyncio 3.7 syntax #33

Closed jonovate closed 5 years ago

jonovate commented 5 years ago

Is your feature request related to a problem? Please describe. N/A

Describe the solution you'd like The whole get_event_loop block has been replaced with 1-line asyncio.run() in Py3.7. Perhaps migration is needed? https://realpython.com/async-io-python/#async-ios-roots-in-generators See "The Event Loop and asyncio.run()"

Additional context Add any other context or screenshots about the feature request here.

boyan-soubachov commented 5 years ago

Seems like a simple change. Would really appreciate it if you submit a pull request. Otherwise I'll try and get around to it when I have the chance.

boyan-soubachov commented 5 years ago

After some thought, I would like to keep backwards compatibility with Python 3.6. Unfortunately I will not be making this change. Thank you for the suggestion.