Skip to content

Commit

Permalink
pypa#257: initialize platforms as list
Browse files Browse the repository at this point in the history
  • Loading branch information
jdecroos-N committed Jan 21, 2020
1 parent e664cdd commit 8a1901c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packaging/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,7 @@ def compatible_tags(
"""
if not python_version:
python_version = sys.version_info[:2]
if not platforms:
platforms = _platform_tags()
platforms = list(platforms or _platform_tags())
for version in _py_interpreter_range(python_version):
for platform_ in platforms:
yield Tag(version, "none", platform_)
Expand Down

0 comments on commit 8a1901c

Please sign in to comment.