X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=pyderasn.py;h=960256f1e38a1e191a384a9fc8eaa40f0cd6ecb7;hb=fd4251b19318fa6821e3e5c68eaed7e8f875535e;hp=abb08e89dce06565635402782039f40c210a5d2d;hpb=42198ee69940c96930d81533ecf9cec87d34b27b;p=pyderasn.git 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