From 8a1901c642fb9f35069648f3ad2a31bdb8ea213f Mon Sep 17 00:00:00 2001 From: jeroen_decroos Date: Tue, 21 Jan 2020 18:43:42 +0100 Subject: [PATCH] #257: initialize platforms as list --- packaging/tags.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packaging/tags.py b/packaging/tags.py index 20512aaf9..1c1430a4d 100644 --- a/packaging/tags.py +++ b/packaging/tags.py @@ -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_)