Skip to content
Snippets Groups Projects
Commit 79e2cdce authored by mtu's avatar mtu
Browse files

Remove unneeded aliastypes access

parent bac5663b
No related branches found
No related tags found
No related merge requests found
......@@ -492,9 +492,7 @@ class ASN1F_CHOICE(ASN1F_field):
else:
s = str(x)
if self.instantiated_choices:
if len(x.aliastypes) != 1:
raise ASN1_Error("ASN1F_CHOICE: could not encode object")
cls = x.aliastypes[0]
cls = type(x)
if hash(cls) not in x.overload_fields:
raise ASN1_Error("ASN1F_CHOICE: could not encode object")
tags = x.overload_fields[hash(cls)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment