Skip to content

Patch for /trunk/data-manager/dmparser.py #109

@GoogleCodeExporter

Description

@GoogleCodeExporter
Rulesets in OR mode match everything. The original code has the FOR loop return 
True at the end, even if none of the rules matched. This works fine for AND 
mode because if a single rule does not match, the loop exits and returns False 
immediately. Completing the loop in AND mode means all the rules matched. In OR 
mode, the loop exits with True when the first match is found. If no matches are 
found by the end of the loop, we need to return False by default instead.

Original issue reported on code.google.com by a...@zweimiller.com on 19 Feb 2014 at 4:22

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions