Skip to content

packaging.tags.compatible_tags is not re-creating a new iterator #257

@jeroendecroos

Description

@jeroendecroos

With the release of pip==20.0.1 a problem was observed as described here: pypa/pip#7626

The problem was tracked back to packaging.tags.compatible_tags

When no iterator is given for parameter platforms, an iterator is initialized:

platforms = _platform_tags()

Which is then used in:

for platform_ in platforms:

This should be the otherway around, to not reuse the exhausted iterator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions