Page MenuHomePhabricator

Rename async and await to avoid breakage in 3.7
Closed, ResolvedPublic

Description

Although not strictly an issue for Python 3.6, we need to rename async and await. While await is nowhere used, we use async at least as parameter for Page.save for example.

See also: https://docs.python.org/dev/whatsnew/3.6.html#new-keywords

Event Timeline

XZise raised the priority of this task from to Medium.
XZise updated the task description. (Show Details)
XZise added projects: Pywikibot, Upstream.
XZise added subscribers: Ricordisamoa, Aklapper, XZise and 2 others.

Change 313793 had a related patch set uploaded (by Ayushjain19):
Replaced the word 'async' with 'asynchronous'

https://gerrit.wikimedia.org/r/313793

Just as a suggestion, being a lazy typer, I prefer a shorter name like asynch or asyn to asynchronous as the new parameter name.

Change 313793 merged by jenkins-bot:
[pywikibot/core@master] Replaced the word 'async' with 'asynchronous'

https://gerrit.wikimedia.org/r/313793