def _is_method_retryable(self, method):
        """ Checks if a given HTTP method should be retried upon, depending if
        it is included on the method whitelist.
        """
        if self.method_whitelist and method.upper() not in self.method_whitelist:
            return False

        return True
 Checks if a given HTTP method should be retried upon, depending if
        it is included on the method whitelist.
        
product/gradle-plugin/src/main/python/pip/_vendor/urllib3/util/retry.py