From f7a92debecda42633ba9a7c320eaaa81871a4d49 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 11 Feb 2020 13:48:07 +0300 Subject: [PATCH] is comparison is slightly faster --- pyderasn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyderasn.py b/pyderasn.py index 53e7abf..fcaa5a6 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -5134,7 +5134,7 @@ def get_def_by_path(defines_by_path, sub_decode_path): if len(path) != len(sub_decode_path): continue for p1, p2 in zip(path, sub_decode_path): - if (p1 != any) and (p1 != p2): + if (not p1 is any) and (p1 != p2): break else: return define -- 2.44.0