Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warnings #60

Open
2 of 3 tasks
newAM opened this issue Sep 27, 2020 · 0 comments
Open
2 of 3 tasks

Deprecation warnings #60

newAM opened this issue Sep 27, 2020 · 0 comments
Assignees

Comments

@newAM
Copy link
Collaborator

newAM commented Sep 27, 2020

Assigning myself, just wanted to create an issue to track existing deprecation warnings.

pycec/network.py:173
  /home/alex/git/pyCEC/pycec/network.py:173: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def async_turn_on(self):  # pragma: no cover

3 things need to change to update the syntax:

  • Remove loop argument in functions
  • Change coroutine decorated functions to async def
  • Change yield from to await
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant