def normalize(self, url):
    '\n        Normalize ``url`` according to policy.\n\n        :param str url: The URL to be normalized.\n        :returns: The normalized URL.\n        :rtype str:\n        '
    if self._enabled:
        if self._strip_parameters:
            url = w3lib.url.url_query_cleaner(url, remove=True, unique=False, parameterlist=self._strip_parameters)
        url = w3lib.url.canonicalize_url(url)
    return url
Normalize ``url`` according to policy.

:param str url: The URL to be normalized.
:returns: The normalized URL.
:rtype str:
def normalize(self, url):
    '\n        Normalize ``url`` according to policy.\n\n        :param str url: The URL to be normalized.\n        :returns: The normalized URL.\n        :rtype str:\n        '
    if self._enabled:
        if self._strip_parameters:
            url = w3lib.url.url_query_cleaner(url, remove=True, unique=False, parameterlist=self._strip_parameters)
        url = w3lib.url.canonicalize_url(url)
    return url