setupbase.py
def _translate_glob(pat):
    """Translate a glob PATTERN to a regular expression."""
    translated_parts = []
    for part in _iexplode_path(pat):
        translated_parts.append(_translate_glob_part(part))
    os_sep_class = '[%s]' % re.escape(SEPARATORS)
    res = _join_translated(translated_parts, os_sep_class)
    return '{res}\\Z(?ms)'.format(res=res)
def _translate_glob(pat):
    translated_parts = []
    for part in _iexplode_path(pat):
        translated_parts.append(_translate_glob_part(part))
    os_sep_class = '[%s]' % re.escape(SEPARATORS)
    res = _join_translated(translated_parts, os_sep_class)
    return '{res}\\Z(?ms)'.format(res=res)
def _translate_glob ( pat ) : translated_parts = [ ] for part in _iexplode_path ( pat ) : translated_parts . append ( _translate_glob_part ( part ) ) os_sep_class = '[%s]' % re . escape ( SEPARATORS ) res = _join_translated ( translated_parts , os_sep_class ) return '{res}\\Z(?ms)' . format ( res = res )
Translate a glob PATTERN to a regular expression.
Translate a glob PATTERN to a regular expression .