From 5efe9f213563560d26bd34b6d9b3642642565b41 Mon Sep 17 00:00:00 2001 From: Ilya Etingof Date: Sun, 19 Nov 2017 16:41:26 +0100 Subject: Start `.prettyPrint` deprecation (#103) * __str__() of ASN.1 types reworked to serve instead of .prettyPrint() Related changes: `str()` on enumerations and boolean will return a string label rather than a number. --- docs/source/example-use-case.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/source/example-use-case.rst b/docs/source/example-use-case.rst index 0b819c3..4efdc81 100644 --- a/docs/source/example-use-case.rst +++ b/docs/source/example-use-case.rst @@ -110,7 +110,7 @@ Once we have Python ASN.1 structures initialized, we could inspect them: .. code-block:: pycon - >>> print(private_key.prettyPrint()) + >>> print('%s' % private_key) RSAPrivateKey: version=0 modulus=280789907761334970323210643584308373... -- cgit v1.2.1