1.1 --- a/encoders.py Fri Oct 28 22:58:50 2016 +0200
1.2 +++ b/encoders.py Sat Oct 29 00:47:12 2016 +0200
1.3 @@ -178,7 +178,7 @@
1.4 )
1.5
1.6 typename_ops = (
1.7 - "__test_common_instance",
1.8 + "__test_common_instance", "__test_common_object", "__test_common_type",
1.9 )
1.10
1.11 encoding_ops = (
1.12 @@ -253,7 +253,12 @@
1.13 # Substitute the first element of the instruction, which may not be an
1.14 # operation at all.
1.15
1.16 - return "%s%s" % (subs.get(op, op), argstr)
1.17 + if subs.has_key(op):
1.18 + op = subs[op]
1.19 + elif not args:
1.20 + op = "&%s" % encode_path(op)
1.21 +
1.22 + return "%s%s" % (op, argstr)
1.23
1.24 def encode_access_instruction_arg(arg, subs):
1.25