Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607922 - sys-apps/portage: "DeprecationWarning: 'async' and 'await' will become reserved keywords in Python 3.7" warning with Python 3.6
Summary: sys-apps/portage: "DeprecationWarning: 'async' and 'await' will become reserv...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
Keywords: InVCS
Depends on:
Blocks: 611328
  Show dependency tree
Reported: 2017-02-01 15:55 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2017-05-20 18:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2017-02-01 15:55:32 UTC
Python 3.6 introduced warnings about invalid-in-future usage of async and await.

Documentation of valid usage:

In Portage:

$ export PYTHONWARNINGS="d,i::ImportWarning"
$ python3.6 -m compileall -fq *
pym/portage/sync/ DeprecationWarning: 'async' and 'await' will become reserved keywords in Python 3.7
  def async(self, emerge_config=None, repo=None, master_hooks=True):

$ grep -r "\.async" *
RELEASE-NOTES:                 SyncRepos.async: group sync and callback as composite task
RELEASE-NOTES:    - Bug 561234 SyncManager.async: initialize attributes before fork
pym/portage/emaint/modules/sync/                return self._sync_manager.async(

Probably this "async" function should be renamed.
Probably "sync" function defined below also should be renamed for consistency.
Comment 2 Zac Medico gentoo-dev 2017-05-20 18:15:37 UTC
Fixed in portage-2.3.5.