Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkram committed Aug 27, 2024
1 parent 32573f4 commit cafdc4c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions binstar_client/requests_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -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``
Expand Down

0 comments on commit cafdc4c

Please sign in to comment.