tlslite.utils.lists module

Helper functions for handling lists

tlslite.utils.lists.getFirstMatching(values, matches)

Return the first element in values that is also in matches.

Return None if values is None, empty or no element in values is also in matches.

Parameters:
  • values (collections.abc.Iterable) – list of items to look through, can be None
  • matches (collections.abc.Container) – list of items to check against