Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 380565 - portage using deprecated functions in metadata.py
Summary: portage using deprecated functions in metadata.py
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 381649
  Show dependency tree
 
Reported: 2011-08-24 20:28 UTC by Hanno Böck
Modified: 2011-09-03 06:35 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Böck gentoo-dev 2011-08-24 20:28:09 UTC
portage uses deprecated functions that produce warnings with python 2.7:

/usr/lib64/portage/pym/portage/xml/metadata.py:220: PendingDeprecationWarning: This method will be removed in future versions.  Use 'tree.iter()' or 'list(tree.iter())' instead.
  for node in self._herdstree.getiterator('herd'):

Please note that by default, python 2.7 doesn't show deprecation warnings, it has to be enabled with the environment variable
PYTHONWARNINGS="d"
Comment 2 Zac Medico gentoo-dev 2011-09-03 06:35:19 UTC
This is fixed (along with some additional similar warnings) in 2.1.10.12 and 2.2.0_alpha52.