summaryrefslogtreecommitdiff
path: root/README.md
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 /README.md
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 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index cf917e0..90ab094 100644
--- a/README.md
+++ b/README.md
@@ -90,7 +90,7 @@ can use it along the lines of similar Python type (e.g. ASN.1
>>> record = Record()
>>> record['id'] = 123
>>> record['room'] = 321
->>> print(record.prettyPrint())
+>>> str(record)
Record:
id=123
room=321
@@ -146,7 +146,7 @@ Python objects:
```python
>>> from pyasn1.codec.native.decoder import decode
>>> record = decode({'id': 123, 'room': 321, 'house': 0}, asn1Spec=Record())
->>> print(record.prettyPrint())
+>>> str(record)
Record:
id=123
room=321