mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 11:24:19 +00:00
downstream: pyparsing: fix using deprecated aliases
Deprecated since pyparsing 3.0 and produce runtime warnings. New function work exactly the same, except their name is pep8 compatible.
This commit is contained in:
@@ -263,7 +263,7 @@ context_class = context
|
||||
|
||||
class codegen_rule:
|
||||
def __init__(self, pattern, fn):
|
||||
self.pattern = tuple(rule.parseString(pattern))
|
||||
self.pattern = tuple(rule.parse_string(pattern))
|
||||
self.fn = fn
|
||||
if not hasattr(codegen_rule, "all_rules"):
|
||||
codegen_rule.all_rules = []
|
||||
|
||||
Reference in New Issue
Block a user