]> Cypherpunks.ru repositories - pyderasn.git/commitdiff
Unsupported .memoryview() lint-friendly exception 9.3
authorSergey Matveev <stargrave@stargrave.org>
Thu, 24 Mar 2022 07:23:10 +0000 (10:23 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 24 Mar 2022 07:23:42 +0000 (10:23 +0300)
VERSION
doc/install.rst
doc/news.rst
pyderasn.py

diff --git a/VERSION b/VERSION
index 1a2c3557ba4eb1138289c1a848eec2acccf85f9f..c3cae12bcc132c9d8c31eb702d8490ba03304ce1 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-9.2
+9.3
index 41b4cb0b26a5a845e73b67dae819c40a0bf91191..64edda09034aad9f939728191adc932ed91e7ad4 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/download/pyderasn-9.2.tar.zst
-    $ [fetch|wget] http://www.pyderasn.cypherpunks.ru/download/pyderasn-9.2.tar.zst.sig
-    $ gpg --verify pyderasn-9.2.tar.zst.sig pyderasn-9.2.tar.zst
-    $ zstd -d < pyderasn-9.2.tar.zst | tar xf -
-    $ cd pyderasn-9.2
+    $ [fetch|wget] http://www.pyderasn.cypherpunks.ru/download/pyderasn-9.3.tar.zst
+    $ [fetch|wget] http://www.pyderasn.cypherpunks.ru/download/pyderasn-9.3.tar.zst.sig
+    $ gpg --verify pyderasn-9.3.tar.zst.sig pyderasn-9.3.tar.zst
+    $ zstd -d < pyderasn-9.3.tar.zst | tar xf -
+    $ cd pyderasn-9.3
     $ python setup.py install
     # or copy pyderasn.py (possibly termcolor.py) to your PYTHONPATH
 
@@ -18,7 +18,7 @@ signature from `official website <http://www.pyderasn.cypherpunks.ru/>`__::
 
 You could use pip (**no** OpenPGP authentication is performed!) with PyPI::
 
-    $ echo pyderasn==9.2 --hash=sha256:TO-BE-FILLED > requirements.txt
+    $ echo pyderasn==9.3 --hash=sha256:TO-BE-FILLED > requirements.txt
     $ pip install --requirement requirements.txt
 
 You have to verify downloaded tarballs integrity and authenticity to be
index ae6db1717b232da5790399692d9158d7ab4ee441..92f0646d26c713c171976bcf27607b3f11faa949 100644 (file)
@@ -1,6 +1,13 @@
 News
 ====
 
+.. _release9.3:
+
+9.3
+---
+* CommonString's ``.memoryview()`` raises ValueError now for
+  friendliness with linters
+
 .. _release9.2:
 
 9.2
index 3c84666a583ac4a85e5fde9119a891bf7680ba87..99c771c41e5afbe0ab20c316f1527f4f1fbae42f 100755 (executable)
@@ -1196,7 +1196,7 @@ except ImportError:  # pragma: no cover
     tzUTC = "missing"
 
 
-__version__ = "9.2"
+__version__ = "9.3"
 
 __all__ = (
     "agg_octet_string",
@@ -4763,7 +4763,7 @@ class CommonString(OctetString):
         return str(self._value)
 
     def memoryview(self):
-        raise NotImplementedError()
+        raise ValueError("CommonString does not support .memoryview()")
 
     def __repr__(self):
         return pp_console_row(next(self.pps()))