summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2017-11-19 16:41:26 +0100
committerGitHub <noreply@github.com>2017-11-19 16:41:26 +0100
commit5efe9f213563560d26bd34b6d9b3642642565b41 (patch)
tree87424f2b94fb3360c15ccad18c064518e3328830 /docs
parentc156221fce2b2e9061ee5095ce6488c829e62698 (diff)
downloadpyasn1-git-5efe9f213563560d26bd34b6d9b3642642565b41.tar.gz
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.
Diffstat (limited to 'docs')
-rw-r--r--docs/source/example-use-case.rst2
1 files changed, 1 insertions, 1 deletions
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...