(path: Path)
| 227 | |
| 228 | |
| 229 | def get_site_paths(path: Path) -> Iterable[Path]: |
| 230 | from httpie.compat import ( |
| 231 | MIN_SUPPORTED_PY_VERSION, |
| 232 | MAX_SUPPORTED_PY_VERSION, |
| 233 | is_frozen |
| 234 | ) |
| 235 | |
| 236 | if is_frozen: |
| 237 | [major, min_minor] = MIN_SUPPORTED_PY_VERSION |
| 238 | [major, max_minor] = MAX_SUPPORTED_PY_VERSION |
| 239 | for minor in range(min_minor, max_minor + 1): |
| 240 | yield as_site( |
| 241 | path, |
| 242 | py_version_short=f'{major}.{minor}' |
| 243 | ) |
| 244 | else: |
| 245 | yield as_site(path) |
| 246 | |
| 247 | |
| 248 | def split_iterable(iterable: Iterable[T], key: Callable[[T], bool]) -> Tuple[List[T], List[T]]: |
no test coverage detected