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.2.tar.xz
- $ [fetch|wget] http://www.pyderasn.cypherpunks.ru/pyderasn-8.2.tar.xz.sig
- $ gpg --verify pyderasn-8.2.tar.xz.sig pyderasn-8.2.tar.xz
- $ xz --decompress --stdout pyderasn-8.2.tar.xz | tar xf -
- $ cd pyderasn-8.2
+ $ [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
$ python setup.py install
# or copy pyderasn.py (+six.py, possibly termcolor.py) to your PYTHONPATH
You could use pip (**no** OpenPGP authentication is performed!) with PyPI::
$ cat > requirements.txt <<EOF
- pyderasn==8.2 --hash=sha256:TO-BE-FILLED
+ pyderasn==8.3 --hash=sha256:TO-BE-FILLED
six==1.15.0 --hash=sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259
EOF
$ pip install --requirement requirements.txt
def colored(what, *args, **kwargs):
return what
-__version__ = "8.2"
+__version__ = "8.3"
__all__ = (
"agg_octet_string",
self._state_update()
return super(TW, self).selectable()
- def get_display_text(self):
+ def _get_display_text_without_offset(self):
pp, constructed = self._get_pp()
style = "constructed" if constructed else ""
if len(pp.decode_path) == 0:
))
return (style, ent)
+ def get_display_text(self):
+ pp, _ = self._get_pp()
+ return "%s: [%d]" % (self._get_display_text_without_offset(), pp.offset)
+
def _scroll(self, what, step):
self.state[what]._invalidate()
pos = self.state[what].focus_position