Open kevinisaac opened 8 years ago
Here is the updated function in groovy.py:
def _get_group_pattern(self,flags):
# combine phrases into a compound pattern
patterns = []
sub_pattern = sre_parse.Pattern()
sub_pattern.flags = flags
for phrase, action in self.lexicon:
gid = sub_pattern.opengroup()
patterns.append(sre_parse.SubPattern(sub_pattern, [
(SUBPATTERN, (len(patterns) + 1, sre_parse.parse(phrase, flags)$
]))
sub_pattern.closegroup(gid, patterns[-1])
#sub_pattern.groups = len(patterns) + 1
group_pattern = sre_parse.SubPattern(sub_pattern, [(BRANCH, (None, patt$
return sre_compile.compile(group_pattern)
@mariomcginley That works. Will be great if added to the repo.
I am using OrientDB and Rexster with the latest release of Bulb in
python3.5
When I try:
I get the following error:
However, there is no problem with
python3.4
.