]> Cypherpunks.ru repositories - pyderasn.git/commitdiff
Fix empty --oids workability 5.1
authorSergey Matveev <stargrave@stargrave.org>
Mon, 29 Apr 2019 18:24:53 +0000 (21:24 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 29 Apr 2019 18:25:55 +0000 (21:25 +0300)
VERSION
doc/news.rst
pyderasn.py

diff --git a/VERSION b/VERSION
index 819e07a22435f1e8efcbdd1d1c062deef0e501b1..a75b92f1ed766132f8e6b71376143c6a7111021a 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-5.0
+5.1
index 8655347bf7980d2f15906d487933ac0d77be4a90..41dd48476deaf6984bd94c20f878c485ab2a8d6c 100644 (file)
@@ -1,6 +1,12 @@
 News
 ====
 
+.. _release5.1:
+
+5.1
+---
+* Fix empty ``--oids`` workability
+
 .. _release5.0:
 
 5.0
index 814d85fba9113ef595bdbd326a93c3c60382b5ca..cf4f22595ab7a4b57a171e9f770aba2b2ff1df34 100755 (executable)
@@ -5700,7 +5700,10 @@ def main():  # pragma: no cover
     args.DERFile.seek(args.skip)
     der = memoryview(args.DERFile.read())
     args.DERFile.close()
-    oid_maps = [obj_by_path(_path) for _path in (args.oids or "").split(",")]
+    oid_maps = (
+        [obj_by_path(_path) for _path in (args.oids or "").split(",")]
+        if args.oids else ()
+    )
     if args.schema:
         schema = obj_by_path(args.schema)
         from functools import partial