]> Cypherpunks.ru repositories - pyderasn.git/commitdiff
Fix defines_by_path example usage
authorSergey Matveev <stargrave@stargrave.org>
Thu, 26 Sep 2019 10:03:39 +0000 (13:03 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 26 Sep 2019 10:03:39 +0000 (13:03 +0300)
pyderasn.py

index 887f000d20b73afbee0a348af9b2ad3681a79433..3868b61f60874d7c95b39e451be894cbe2f95258 100755 (executable)
@@ -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