]> Cypherpunks.ru repositories - pyderasn.git/commitdiff
Simpler boolean expression
authorSergey Matveev <stargrave@stargrave.org>
Thu, 23 Jan 2020 13:44:16 +0000 (16:44 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 23 Jan 2020 15:55:30 +0000 (18:55 +0300)
pyderasn.py

index f563afef86964240e57971d85c91fa35d40de0c8..d3b304ca8d3cb452b2adf2733b44c2d33dc27684 100755 (executable)
@@ -5752,7 +5752,7 @@ def main():  # pragma: no cover
     print(pprinter(
         obj,
         oid_maps=oid_maps,
-        with_colours=True if environ.get("NO_COLOR") is None else False,
+        with_colours=environ.get("NO_COLOR") is None,
         with_decode_path=args.print_decode_path,
         decode_path_only=(
             () if args.decode_path_only is None else