Skip to content

Commit

Permalink
Minor clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
excitoon committed Aug 28, 2022
1 parent 38ed7b9 commit deb34f5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gitignorefile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,18 +203,16 @@ def _rule_from_pattern(pattern, source=None):
regexp=regexp,
negation=negation,
directory_only=directory_only,
anchored=anchored,
source=source,
)


_IGNORE_RULE_FIELDS = [
"pattern",
"regexp", # Basic values
"regexp",
"negation",
"directory_only",
"anchored", # Behavior flags
"source", # (file, line) tuple for reporting
"source", # (file, line)
]


Expand Down

0 comments on commit deb34f5

Please sign in to comment.