This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import warnings | |
from typing import Pattern | |
def translate_url_pattern(pattern: str, # noqa: max-complexity: 20 | |
case_sensitive: bool = True, | |
) -> Pattern: | |
""" | |
translates a url pattern (like a glob pattern) to a regular expression |
OlderNewer