summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Matveev <stargrave@stargrave.org>2020-02-11 12:53:41 +0300
committerSergey Matveev <stargrave@stargrave.org>2020-02-11 12:53:41 +0300
commit2d827e5960b2d1f876e7c7ac7fa32de9ecd83368 (patch)
tree1e4fe76b4d4595eaa03c39958713797b65275730
parentad6ac8681ad5479b7274165a056624433e0ca2f1 (diff)
downloadpyderasn-2d827e5960b2d1f876e7c7ac7fa32de9ecd83368.tar.xz
namedtuple initialization workability under Py35
-rw-r--r--VERSION2
-rw-r--r--doc/install.rst12
-rw-r--r--doc/news.rst7
-rwxr-xr-xpyderasn.py5
4 files changed, 17 insertions, 9 deletions
diff --git a/VERSION b/VERSION
index 0cda48a..0faee7d 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-6.2
+6.3
diff --git a/doc/install.rst b/doc/install.rst
index 9c21d28..03d1116 100644
--- a/doc/install.rst
+++ b/doc/install.rst
@@ -4,11 +4,11 @@ Install
Preferable way is to :ref:`download <download>` tarball with the
signature from `official website <http://pyderasn.cypherpunks.ru/>`__::
- $ [fetch|wget] http://pyderasn.cypherpunks.ru/pyderasn-6.2.tar.xz
- $ [fetch|wget] http://pyderasn.cypherpunks.ru/pyderasn-6.2.tar.xz.sig
- $ gpg --verify pyderasn-6.2.tar.xz.sig pyderasn-6.2.tar.xz
- $ xz --decompress --stdout pyderasn-6.2.tar.xz | tar xf -
- $ cd pyderasn-6.2
+ $ [fetch|wget] http://pyderasn.cypherpunks.ru/pyderasn-6.3.tar.xz
+ $ [fetch|wget] http://pyderasn.cypherpunks.ru/pyderasn-6.3.tar.xz.sig
+ $ gpg --verify pyderasn-6.3.tar.xz.sig pyderasn-6.3.tar.xz
+ $ xz --decompress --stdout pyderasn-6.3.tar.xz | tar xf -
+ $ cd pyderasn-6.3
$ python setup.py install
# or copy pyderasn.py (+six.py, possibly termcolor.py) to your PYTHONPATH
@@ -19,7 +19,7 @@ You can also find it mirrored on :ref:`download <download>` page.
You could use pip (**no** OpenPGP authentication is performed!) with PyPI::
$ cat > requirements.txt <<EOF
- pyderasn==6.2 --hash=sha256:TO-BE-FILLED
+ pyderasn==6.3 --hash=sha256:TO-BE-FILLED
six==1.14.0 --hash=sha256:236bdbdce46e6e6a3d61a337c0f8b763ca1e8717c03b369e87a7ec7ce1319c0a
EOF
$ pip install --requirement requirements.txt
diff --git a/doc/news.rst b/doc/news.rst
index 6264a31..8ec7ba1 100644
--- a/doc/news.rst
+++ b/doc/news.rst
@@ -1,6 +1,13 @@
News
====
+.. _release6.3:
+
+6.3
+---
+* Fixed workability under Python 3.5. Previously only 2.7 and 3.6
+ versions were tested
+
.. _release6.2:
6.2
diff --git a/pyderasn.py b/pyderasn.py
index ed5b763..53e7abf 100755
--- a/pyderasn.py
+++ b/pyderasn.py
@@ -666,6 +666,7 @@ from math import ceil
from os import environ
from string import ascii_letters
from string import digits
+from sys import version_info
from unicodedata import category as unicat
from six import add_metaclass
@@ -690,7 +691,7 @@ except ImportError: # pragma: no cover
def colored(what, *args, **kwargs):
return what
-__version__ = "6.2"
+__version__ = "6.3"
__all__ = (
"Any",
@@ -764,7 +765,7 @@ EOC = b"\x00\x00"
EOC_LEN = len(EOC)
LENINDEF = b"\x80" # length indefinite mark
LENINDEF_PP_CHAR = "I" if PY2 else "∞"
-NAMEDTUPLE_KWARGS = {} if PY2 else {"module": __name__}
+NAMEDTUPLE_KWARGS = {} if version_info < (3, 6) else {"module": __name__}
SET01 = frozenset("01")
DECIMALS = frozenset(digits)
DECIMAL_SIGNS = ".,"