From: Sergey Matveev Date: Mon, 17 Feb 2020 11:04:00 +0000 (+0300) Subject: Remove forgotten moved get_def_by_path X-Git-Tag: 7.2~9 X-Git-Url: http://www.git.cypherpunks.ru/?p=pyderasn.git;a=commitdiff_plain;h=fd4251b19318fa6821e3e5c68eaed7e8f875535e Remove forgotten moved get_def_by_path --- diff --git a/pyderasn.py b/pyderasn.py index abb08e8..960256f 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -5816,19 +5816,6 @@ class Any(Obj): # ASN.1 constructed types ######################################################################## -def get_def_by_path(defines_by_path, sub_decode_path): - """Get define by decode path - """ - for path, define in defines_by_path: - if len(path) != len(sub_decode_path): - continue - for p1, p2 in zip(path, sub_decode_path): - if (not p1 is any) and (p1 != p2): - break - else: - return define - - def abs_decode_path(decode_path, rel_path): """Create an absolute decode path from current and relative ones