diff options
author | Ilya Etingof <etingof@gmail.com> | 2017-02-04 13:37:11 +0100 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2017-02-04 13:37:11 +0100 |
commit | 9754d4273736ad808cfc4060b4281c3be9d93616 (patch) | |
tree | db7031bdb9f90378051cec607b1f3a0584c54fff /README.md | |
parent | a5bbbe7197846d23346ed3ac34203887fb98f602 (diff) | |
download | pyasn1-9754d4273736ad808cfc4060b4281c3be9d93616.tar.gz |
python codec renamed into "native"
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -134,7 +134,7 @@ To make life easier for a Pythonista, they can turn their pyasn1 classes into Python built-ins: ```python ->>> from pyasn1.codec.python.encoder import encode +>>> from pyasn1.codec.native.encoder import encode >>> encode(record) {'id': 123, 'room': 321, 'house': 0} ``` @@ -143,7 +143,7 @@ Or vice-versa -- you can initialize an ASN.1 structure from a tree of Python objects: ```python ->>> from pyasn1.codec.python.decoder import decode +>>> from pyasn1.codec.native.decoder import decode >>> record = decode({'id': 123, 'room': 321, 'house': 0}, asn1Spec=Record()) >>> print(record.prettyPrint()) Record: |