Skip to content

Commit

Permalink
quickfix model.py: del _tx_model_resolver...
Browse files Browse the repository at this point in the history
  • Loading branch information
goto40 committed May 9, 2020
1 parent a80077d commit 8fc96fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions textx/model.py
Expand Up @@ -746,6 +746,10 @@ def call_obj_processors(metamodel, model_obj,
for m in models:
assert not m._tx_reference_resolver.parser._inst_stack

# cleanup
for m in models:
_end_model_construction(m)

# At this point we should restore original user attr methods as
# attribute collection is over and we should switch back to
# "normal" behavior
Expand Down Expand Up @@ -783,10 +787,6 @@ def call_obj_processors(metamodel, model_obj,
parser.dprint(traceback.print_exc())
raise e

# cleanup
for m in models:
_end_model_construction(m)

# final check that everything went ok
for m in models:
assert 0 == len(get_children_of_type(
Expand Down

0 comments on commit 8fc96fa

Please sign in to comment.