* Removed ``lenindef``, ``ber_encoded`` attributes from the Choice --
they must be taken from underlying value, as Choice does not have its
own encoding
+* Do not yield extra EOC PP for Any, having indefinite length encoding
+ and containing autodecoded DEFINED BY value
.. _release4.1:
return self.expl_tlvlen if self.expled else self.tlvlen
def pps_lenindef(self, decode_path):
- if self.lenindef:
+ if self.lenindef and not (
+ getattr(self, "defined", None) is not None and
+ self.defined[1].lenindef
+ ):
yield _pp(
asn1_type_name="EOC",
obj_name="",