Skip to content

Commit 9794814

Browse files
author
Sergi Almacellas Abellana
authored
Import DigestAlgorithm from signxml in XAdES example (#212)
The documentation imports DigestAlgorithm from `signxml.xades` but the digest algorithm is not exposed there. So better to improve the documentation to import the algorithm from the right path.
1 parent ea42f8a commit 9794814

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,9 @@ SignXML supports signing and verifying documents using `XAdES <https://en.wikipe
182182

183183
.. code-block:: python
184184
185+
from signxml import DigestAlgorithm
185186
from signxml.xades import (XAdESSigner, XAdESVerifier, XAdESVerifyResult,
186-
XAdESSignaturePolicy, XAdESDataObjectFormat, DigestAlgorithm)
187+
XAdESSignaturePolicy, XAdESDataObjectFormat)
187188
signature_policy = XAdESSignaturePolicy(
188189
Identifier="MyPolicyIdentifier",
189190
Description="Hello XAdES",

0 commit comments

Comments
 (0)