1.1 --- a/encoders.py Sun Feb 19 19:06:22 2017 +0100
1.2 +++ b/encoders.py Sun Feb 19 22:24:36 2017 +0100
1.3 @@ -218,6 +218,10 @@
1.4 "<context>", "<set_context>", "<test_context_revert>", "<test_context_static>",
1.5 )
1.6
1.7 +context_op_functions = (
1.8 + "<test_context_revert>", "<test_context_static>",
1.9 + )
1.10 +
1.11 reference_acting_ops = attribute_ops + checked_ops + typename_ops
1.12 attribute_producing_ops = attribute_loading_ops + checked_loading_ops
1.13
1.14 @@ -289,6 +293,11 @@
1.15 if op in context_ops:
1.16 a.insert(0, context_index)
1.17
1.18 + # Add the local context array to certain operations.
1.19 +
1.20 + if op in context_op_functions:
1.21 + a.append("__tmp_contexts")
1.22 +
1.23 # Define any argument string.
1.24
1.25 if a: