python-zk / kazoo

Kazoo is a high-level Python library that makes it easier to use Apache Zookeeper.
https://kazoo.readthedocs.io
Apache License 2.0
1.3k stars 387 forks source link

Remove the use of variables named async or await #455

Closed cooperlees closed 7 years ago

cooperlees commented 7 years ago

In Python 3.7 the use of async or await as variable names will cause errors as they are reserved keywords. Kazoo does this, we should get this fixed.

/data/users/cooper/binary#link-tree/kazoo/recipe/watchers.py:425: DeprecationWarning: 'async' and 'await' will become reserved keywords in Python 3.7

e.g. https://github.com/python-zk/kazoo/blob/master/kazoo/recipe/watchers.py#L425-L427

jeffwidman commented 7 years ago

@cooperlees Care to submit a PR for this?

cooperlees commented 7 years ago

I've flagged this with our Zookeeper team. Hopefully someone there will. I'm strapped for time, just noticed this warning debugging a codebase that uses kazoo and thought I'd flag it.