summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Matveev <stargrave@stargrave.org>2020-02-11 13:48:07 +0300
committerSergey Matveev <stargrave@stargrave.org>2020-02-11 13:48:58 +0300
commitf7a92debecda42633ba9a7c320eaaa81871a4d49 (patch)
tree370eb633886f8bb4bf2d158007b856ea76ca716f
parent40b45e547d39e7b1daca62a625867010387fc0ff (diff)
downloadpyderasn-f7a92debecda42633ba9a7c320eaaa81871a4d49.tar.xz
is comparison is slightly faster
-rwxr-xr-xpyderasn.py2
1 files changed, 1 insertions, 1 deletions
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