diff --git a/binstar_client/requests_ext.py b/binstar_client/requests_ext.py index 758fa898..cdaed538 100644 --- a/binstar_client/requests_ext.py +++ b/binstar_client/requests_ext.py @@ -12,20 +12,9 @@ logger = logging.getLogger('binstar.requests_ext') - KeyT = typing.TypeVar('KeyT') ValueT = typing.TypeVar('ValueT') - -def iter_fields( - fields: typing.Union[typing.Mapping[KeyT, ValueT], typing.Iterable[typing.Tuple[KeyT, ValueT]]], -) -> typing.Iterator[typing.Tuple[KeyT, ValueT]]: - """Iterate over fields.""" - if isinstance(fields, typing.Mapping): - return iter(fields.items()) - return iter(fields) - - class NullAuth(AuthBase): # pylint: disable=too-few-public-methods """force requests to ignore the ``.netrc``