src/borg/patterns.py
def parse_patternfile_line(line, roots, ie_commands, fallback):
    """Parse a pattern-file line and act depending on which command it represents."""
    ie_command = parse_inclexcl_command(line, fallback=fallback)
    if ie_command.cmd is IECommand.RootPath:
        roots.append(ie_command.val)
    elif ie_command.cmd is IECommand.PatternStyle:
        fallback = ie_command.val
    else:
        # it is some kind of include/exclude command
        ie_commands.append(ie_command)
    return fallback
Parse a pattern-file line and act depending on which command it represents.
Parse a pattern-file line and act depending on which command it represents.
Parse a pattern - file line and act depending on which command it represents .
def parse_patternfile_line(line, roots, ie_commands, fallback):
    ie_command = parse_inclexcl_command(line, fallback=fallback)
    if ie_command.cmd is IECommand.RootPath:
        roots.append(ie_command.val)
    elif ie_command.cmd is IECommand.PatternStyle:
        fallback = ie_command.val
    else:
        ie_commands.append(ie_command)
    return fallback
def parse_patternfile_line ( line , roots , ie_commands , fallback ) : ie_command = parse_inclexcl_command ( line , fallback = fallback ) if ie_command . cmd is IECommand . RootPath : roots . append ( ie_command . val ) elif ie_command . cmd is IECommand . PatternStyle : fallback = ie_command . val else : ie_commands . append ( ie_command ) return fallback
Parse a pattern-file line and act depending on which command it represents.
Parse a pattern - file line and act depending on which command it represents .
"""Parse a pattern-file line and act depending on which command it represents.""" # it is some kind of include/exclude command
line
roots
ie_commands
fallback