]> Cypherpunks.ru repositories - pyderasn.git/commitdiff
Fix browser style breakage
authorSergey Matveev <stargrave@stargrave.org>
Sat, 15 May 2021 14:45:22 +0000 (17:45 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 15 May 2021 14:48:44 +0000 (17:48 +0300)
VERSION
doc/install.rst
doc/news.rst
pyderasn.py

diff --git a/VERSION b/VERSION
index cf022018d84dff72b77a8f74904e8e46964c7175..c9dc0490835bb521a540196361c1c2b86c596df9 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-8.3
+8.4
index 67814080854e466d14ff8de667a64915b9488f32..2bdd9f9acb0c79fb39da4a731197b238720f0901 100644 (file)
@@ -4,11 +4,11 @@ Install
 Preferable way is to :ref:`download <download>` tarball with the
 signature from `official website <http://www.pyderasn.cypherpunks.ru/>`__::
 
-    $ [fetch|wget] http://www.pyderasn.cypherpunks.ru/pyderasn-8.3.tar.xz
-    $ [fetch|wget] http://www.pyderasn.cypherpunks.ru/pyderasn-8.3.tar.xz.sig
-    $ gpg --verify pyderasn-8.3.tar.xz.sig pyderasn-8.3.tar.xz
-    $ xz --decompress --stdout pyderasn-8.3.tar.xz | tar xf -
-    $ cd pyderasn-8.3
+    $ [fetch|wget] http://www.pyderasn.cypherpunks.ru/pyderasn-8.4.tar.xz
+    $ [fetch|wget] http://www.pyderasn.cypherpunks.ru/pyderasn-8.4.tar.xz.sig
+    $ gpg --verify pyderasn-8.4.tar.xz.sig pyderasn-8.4.tar.xz
+    $ xz --decompress --stdout pyderasn-8.4.tar.xz | tar xf -
+    $ cd pyderasn-8.4
     $ python setup.py install
     # or copy pyderasn.py (+six.py, possibly termcolor.py) to your PYTHONPATH
 
@@ -21,7 +21,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==8.3 --hash=sha256:TO-BE-FILLED
+    pyderasn==8.4 --hash=sha256:TO-BE-FILLED
     six==1.15.0 --hash=sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259
     EOF
     $ pip install --requirement requirements.txt
index 048c8f8439ea0b6ff0ab72edd065cd7194edb8c6..3ad98a607936bc0236100e8bd29dde6516c81072 100644 (file)
@@ -1,6 +1,12 @@
 News
 ====
 
+.. _release8.4:
+
+8.4
+---
+* Fix previous release's style breaking in ASN.1 browser.
+
 .. _release8.3:
 
 8.3
index ad20ddbefa32263f28fa4940f1958628bc71f515..e08f6bad3a090204af25441d78c285fec6521034 100755 (executable)
@@ -1204,7 +1204,7 @@ except ImportError:  # pragma: no cover
     def colored(what, *args, **kwargs):
         return what
 
-__version__ = "8.3"
+__version__ = "8.4"
 
 __all__ = (
     "agg_octet_string",
@@ -7695,7 +7695,8 @@ def browse(raw, obj, oid_maps=()):
 
         def get_display_text(self):
             pp, _ = self._get_pp()
-            return "%s: [%d]" % (self._get_display_text_without_offset(), pp.offset)
+            style, ent = self._get_display_text_without_offset()
+            return [(style, ent), " [%d]" % pp.offset]
 
         def _scroll(self, what, step):
             self.state[what]._invalidate()