Skip to content

Commit

Permalink
temporary hack to recursive type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
etingof committed Jul 26, 2017
1 parent eb30a14 commit 75a1d10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Revision 0.0.10, released 27-07-2017

* Fixed SequenceOf initializer to pass now-mandatory componentType
keyword argument (since pyasn1 0.3.1)
* Temporarily fixed recursive ASN.1 type definition to work with
pyasn1 0.3.1+. This is going to be fixed properly shortly.

Revision 0.0.9, released 01-06-2017
-----------------------------------
Expand Down
4 changes: 2 additions & 2 deletions pyasn1_modules/rfc4210.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,5 +784,5 @@ class PKIMessages(univ.SequenceOf):

# pyasn1 does not naturally handle recursive definitions, thus this hack:
# NestedMessageContent ::= PKIMessages
NestedMessageContent.componentType = PKIMessages()
nestedMessageContent.componentType = PKIMessages()
NestedMessageContent._componentType = PKIMessages()
nestedMessageContent._componentType = PKIMessages()

0 comments on commit 75a1d10

Please sign in to comment.