]> Cypherpunks.ru repositories - pyderasn.git/commitdiff
Fix EOC repr under Py2 3.9
authorSergey Matveev <stargrave@stargrave.org>
Fri, 29 Jun 2018 21:12:44 +0000 (00:12 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 29 Jun 2018 21:12:44 +0000 (00:12 +0300)
doc/news.rst
pyderasn.py

index 7c067edc6a8e69ccb9adbefbcb5d3afe9064a22d..8dcc500df39f7a6e2cb9e8192e6af9209adb6faa 100644 (file)
@@ -5,14 +5,15 @@ News
 
 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:
 
index 6f30f582f793654b26a39f9b6a8fc0256be9898b..188e2ac49e1ca06582d2fba6270515461f158940 100755 (executable)
@@ -604,7 +604,7 @@ TagClassReprs = {
 EOC = b"\x00\x00"
 EOC_LEN = len(EOC)
 LENINDEF = b"\x80"  # length indefinite mark
-LENINDEF_PP_CHAR = "∞"
+LENINDEF_PP_CHAR = "I" if PY2 else "∞"
 
 
 ########################################################################