]> Cypherpunks.ru repositories - pyderasn.git/commitdiff
Fix DecodeError bug with DecodePathDefBy
authorSergey Matveev <stargrave@stargrave.org>
Wed, 14 Feb 2018 07:36:22 +0000 (10:36 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 14 Feb 2018 07:36:22 +0000 (10:36 +0300)
VERSION
doc/news.rst
pyderasn.py

diff --git a/VERSION b/VERSION
index 9f55b2ccb5f234fc6b87ada62389a3d73815d0d1..8c50098d8aed57b02fd10f40a670a7c673b7c5a5 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-3.0
+3.1
index 5a8f7189509b1b322eb7139c575bd367880e9a68..0363d7d8fe922360687be1269824f616939775b3 100644 (file)
@@ -1,6 +1,12 @@
 News
 ====
 
+.. _release3.1:
+
+3.1
+---
+* Fix bug related to DecodeError showing with DecodePathDefBy entities
+
 .. _release3.0:
 
 3.0
index e69b19056ce010fa0ea09e4a111fd68964c34c95..3ed23da12c2fb486359224fc1275413b9da44980 100755 (executable)
@@ -588,7 +588,7 @@ class DecodeError(Exception):
             c for c in (
                 "" if self.klass is None else self.klass.__name__,
                 (
-                    ("(%s)" % ".".join(self.decode_path))
+                    ("(%s)" % ".".join(str(dp) for dp in self.decode_path))
                     if len(self.decode_path) > 0 else ""
                 ),
                 ("(at %d)" % self.offset) if self.offset > 0 else "",