]> Cypherpunks.ru repositories - pyderasn.git/blobdiff - pyderasn.py
Fix "colored" fallback function workability
[pyderasn.git] / pyderasn.py
index 814d85fba9113ef595bdbd326a93c3c60382b5ca..887f000d20b73afbee0a348af9b2ad3681a79433 100755 (executable)
@@ -670,7 +670,7 @@ from six.moves import xrange as six_xrange
 try:
     from termcolor import colored
 except ImportError:  # pragma: no cover
-    def colored(what, *args):
+    def colored(what, *args, **kwargs):
         return what
 
 
@@ -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