Skip to content

Commit

Permalink
Change the Pattern.match() method to call self.walk() instead of
Browse files Browse the repository at this point in the history
trying to access self.__parse_tree directly.
  • Loading branch information
chisholm committed Oct 29, 2017
1 parent 485b1a2 commit 658c972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stix2matcher/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -2122,7 +2122,7 @@ def match(self, observed_data_sdos, verbose=False):
:raises MatcherException: If an error occurs during matching
"""
matcher = MatchListener(observed_data_sdos, verbose)
antlr4.ParseTreeWalker.DEFAULT.walk(matcher, self.__parse_tree)
self.walk(matcher)

found_bindings = matcher.matched()
if found_bindings:
Expand Down

0 comments on commit 658c972

Please sign in to comment.