summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Matveev <stargrave@stargrave.org>2019-09-26 13:03:39 +0300
committerSergey Matveev <stargrave@stargrave.org>2019-09-26 13:03:39 +0300
commit165e97910a69809f2a7dcc852b0229d0aa1ff157 (patch)
tree03c888aecbaf847515650a398d7777d0b2d44cd5
parent16134d090d04ec041159fcb2dc5200421b38bb38 (diff)
downloadpyderasn-165e97910a69809f2a7dcc852b0229d0aa1ff157.tar.xz
Fix defines_by_path example usage
-rwxr-xr-xpyderasn.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyderasn.py b/pyderasn.py
index 887f000..3868b61 100755
--- a/pyderasn.py
+++ b/pyderasn.py
@@ -429,7 +429,7 @@ For example, again for CMS, you want to automatically decode
structures it may hold. Also, automatically decode ``controlSequence``
of ``PKIResponse``::
- content_info, tail = ContentInfo().decode(data, defines_by_path=(
+ content_info, tail = ContentInfo().decode(data, ctx={"defines_by_path": (
(
("contentType",),
((("content",), {id_signedData: SignedData()}),),
@@ -464,7 +464,7 @@ of ``PKIResponse``::
id_cmc_transactionId: TransactionId(),
})),
),
- ))
+ )})
Pay attention for :py:class:`pyderasn.DecodePathDefBy` and ``any``.
First function is useful for path construction when some automatic