mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
fix-py-syntax-warning
This commit is contained in:
@@ -204,7 +204,7 @@ for id in to_emit:
|
||||
statements.append("%s << %s" % (id, stmt))
|
||||
|
||||
if __name__ == "__main__":
|
||||
print("""
|
||||
print(r"""
|
||||
# This file is generated by IfcOpenShell ifcexpressparser bootstrap.py
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -585,7 +585,7 @@ def process_local_variable(context):
|
||||
if (
|
||||
context.parameter_type.generalized_types.general_aggregation_types.general_set_type
|
||||
):
|
||||
expr = re.sub("(\[[^\]]*\])", "express_set(\\1)", expr)
|
||||
expr = re.sub(r"(\[[^\]]*\])", "express_set(\\1)", expr)
|
||||
|
||||
return "%s = %s" % (str(context.variable_id).lower(), expr)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user