Skip to content

Commit

Permalink
Merge pull request #33 from wolfmanstout/rule_activation
Browse files Browse the repository at this point in the history
Fixed bug where newly-constructed rules were not inactivated.
  • Loading branch information
drmfinlay committed Sep 19, 2018
2 parents 8871984 + 20eeacd commit c506f01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dragonfly/grammar/grammar_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,9 @@ def load(self):

# Update all rules loaded in this grammar.
for rule in self._rules:
if rule.active:
# Explicitly compare to False so that uninitialized rules (which
# have active set to None) are activated.
if rule.active != False:
rule.activate(force=True)
# Update all lists loaded in this grammar.
for lst in self._lists:
Expand Down

0 comments on commit c506f01

Please sign in to comment.