···155 # python(minor).(major)-(pname)-(version or unstable-date)
156 # we need the version qualifier, or we'll have multiple matches
157 # (e.g. pyserial and pyserial-asyncio when looking for pyserial)
158- pattern = re.compile(f"^python\\d\\.\\d-{name}-(?:\\d|unstable-.*)", re.I)
159 for attr_path, package in packages.items():
160 if pattern.match(package["name"]):
161 attr_paths.append(attr_path)
···155 # python(minor).(major)-(pname)-(version or unstable-date)
156 # we need the version qualifier, or we'll have multiple matches
157 # (e.g. pyserial and pyserial-asyncio when looking for pyserial)
158+ pattern = re.compile(f"^python\\d+\\.\\d+-{name}-(?:\\d|unstable-.*)", re.I)
159 for attr_path, package in packages.items():
160 if pattern.match(package["name"]):
161 attr_paths.append(attr_path)