3 ]@sdZddlZddlmZddlmZddZdd Zd d Zd d ZddZ ddZ ddZ ddZ ej dZddZddZddZdS)z.Module with functions to normalize components.N)compat)misccCs|jS)zNormalize the scheme component.)lower)schemerG/tmp/pip-build-el9acr48/urllib3/urllib3/packages/rfc3986/normalizers.pynormalize_schemesr cCsF|\}}}d}|r"|t|d7}|r2|t|7}|rB|d|7}|S)z)Normalize an authority tuple to a string.@:)normalize_percent_charactersnormalize_host) authorityuserinfohostportresultrrrnormalize_authoritys   rcCs tj|S)zs      "