summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Matveev <stargrave@stargrave.org>2019-04-29 21:24:53 +0300
committerSergey Matveev <stargrave@stargrave.org>2019-04-29 21:25:55 +0300
commitb03991f8fe17ab0e450400286374285b11105db5 (patch)
tree1230de8f7233aa87cc63505e7d567d5b9ca5407d
parentc1be9aab26386f914fa8efb816cc3d2badbfc377 (diff)
downloadpyderasn-b03991f8fe17ab0e450400286374285b11105db5.tar.xz
Fix empty --oids workability5.1
-rw-r--r--VERSION2
-rw-r--r--doc/news.rst6
-rwxr-xr-xpyderasn.py5
3 files changed, 11 insertions, 2 deletions
diff --git a/VERSION b/VERSION
index 819e07a..a75b92f 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-5.0
+5.1
diff --git a/doc/news.rst b/doc/news.rst
index 8655347..41dd484 100644
--- a/doc/news.rst
+++ b/doc/news.rst
@@ -1,6 +1,12 @@
News
====
+.. _release5.1:
+
+5.1
+---
+* Fix empty ``--oids`` workability
+
.. _release5.0:
5.0
diff --git a/pyderasn.py b/pyderasn.py
index 814d85f..cf4f225 100755
--- a/pyderasn.py
+++ b/pyderasn.py
@@ -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