diff --git a/imports.py b/imports.py index 73ae10d..61376b7 100644 --- a/imports.py +++ b/imports.py @@ -6,7 +6,6 @@ import pathlib import subprocess import sys - from typing import Generator import jaraco.context diff --git a/pypi.py b/pypi.py index 6f39b90..2734347 100644 --- a/pypi.py +++ b/pypi.py @@ -4,8 +4,8 @@ import functools import getpass -import io import importlib.metadata +import io import itertools import json import logging @@ -14,8 +14,6 @@ import pathlib import re import tokenize -from zipp.compat.overlay import zipfile - from typing import Iterator import jaraco.collections @@ -26,10 +24,10 @@ from jaraco.functools import apply from more_itertools import first, one from requests.exceptions import HTTPError -from requests_toolbelt import sessions from requests_file import FileAdapter +from requests_toolbelt import sessions from retry_requests import retry - +from zipp.compat.overlay import zipfile session = retry(sessions.BaseUrlSession('https://pypi.python.org/pypi/')) session.mount('file://', FileAdapter())