From b03991f8fe17ab0e450400286374285b11105db5 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Mon, 29 Apr 2019 21:24:53 +0300 Subject: [PATCH] Fix empty --oids workability --- VERSION | 2 +- doc/news.rst | 6 ++++++ pyderasn.py | 5 ++++- 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 -- 2.44.0