doc/news.rst | 7 ++++--- pyderasn.py | 2 +- diff --git a/doc/news.rst b/doc/news.rst index 2b65406fad5e8a6398ace804f99e6a04b344387d49219e432f6b32738e8b8a53..d95c8bf5d0f3bf8571ca3fc33005cd1b6e5525fb40b353db0666833fc1072f09 100644 --- a/doc/news.rst +++ b/doc/news.rst @@ -5,14 +5,15 @@ .. _release3.9: 3.9 --- -SEQUENCE's values are printed with field's name. Previously there was -the following output:: +* SEQUENCE's values are printed with field's name. Previously there was + the following output:: AlgorithmIdentifier SEQUENCE[OBJECT IDENTIFIER 1.3.14.3.2.26, [UNIV 5] ANY 0500 OPTIONAL] -now it is:: + now it is:: AlgorithmIdentifier SEQUENCE[algorithm: OBJECT IDENTIFIER 1.3.14.3.2.26; parameters: [UNIV 5] ANY 0500 OPTIONAL] +* Fixed EOC (Unicode character) repr printing issues under Python2 .. _release3.8: diff --git a/pyderasn.py b/pyderasn.py index 2d643b0170a888c125f7c878167e3b0a22c954d6075ac3bba53280fb49d03268..e47ccc74d6f65d5c82cd58b91b857eb6ca3e1c416d997e204c140ab2e9f87995 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -604,7 +604,7 @@ } EOC = b"\x00\x00" EOC_LEN = len(EOC) LENINDEF = b"\x80" # length indefinite mark -LENINDEF_PP_CHAR = "∞" +LENINDEF_PP_CHAR = "I" if PY2 else "∞" ########################################################################