def add_strategy(self, domain, strategy):
        # Turn tuples into Basic Authentication objects
        if isinstance(strategy, tuple):
            strategy = HTTPBasicAuth(*strategy)

        key = self._key_from_url(domain)
        self.strategies[key] = strategy
Add a new domain and authentication strategy.
dataset/ETHPy150Open sigmavirus24/requests-toolbelt/requests_toolbelt/auth/handler.py/AuthHandler.add_strategy