src/borg/patterns.py
def parse_pattern(pattern, fallback=FnmatchPattern, recurse_dir=True):
    """Read pattern from string and return an instance of the appropriate implementation class.

    """
    if len(pattern) > 2 and pattern[2] == ":" and pattern[:2].isalnum():
        (style, pattern) = (pattern[:2], pattern[3:])
        cls = get_pattern_class(style)
    else:
        cls = fallback
    return cls(pattern, recurse_dir)
Read pattern from string and return an instance of the appropriate implementation class.

    
Read pattern from string and return an instance of the appropriate implementation class.
Read pattern from string and return an instance of the appropriate implementation class .
def parse_pattern(pattern, fallback=FnmatchPattern, recurse_dir=True):
    if len(pattern) > 2 and pattern[2] == ":" and pattern[:2].isalnum():
        (style, pattern) = (pattern[:2], pattern[3:])
        cls = get_pattern_class(style)
    else:
        cls = fallback
    return cls(pattern, recurse_dir)
def parse_pattern ( pattern , fallback = FnmatchPattern , recurse_dir = True ) : if len ( pattern ) > 2 and pattern [ 2 ] == ":" and pattern [ : 2 ] . isalnum ( ) : ( style , pattern ) = ( pattern [ : 2 ] , pattern [ 3 : ] ) cls = get_pattern_class ( style ) else : cls = fallback return cls ( pattern , recurse_dir )
Read pattern from string and return an instance of the appropriate implementation class.
Read pattern from string and return an instance of the appropriate implementation class .
"""Read pattern from string and return an instance of the appropriate implementation class.

    """
pattern
fallback
recurse_dir