X-Git-Url: http://www.git.cypherpunks.ru/?p=pyderasn.git;a=blobdiff_plain;f=pyderasn.py;h=32ce73c664a72155d64844ac42ef434a7ce1a709;hp=fb043feeb76d038f4579695826131dcf3636f740;hb=0299eebb6510dfd46f0c4f613b76f56cb66785aa;hpb=1822faabc359cd416dddb9a56fd03f20d9651e09 diff --git a/pyderasn.py b/pyderasn.py index fb043fe..32ce73c 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -807,7 +807,7 @@ class Obj(object): obj, tail = self._decode( v, offset=offset + tlen + llen, - decode_path=(), + decode_path=decode_path, ) return obj, (tail if leavemm else tail.tobytes()) @@ -3359,7 +3359,6 @@ class Sequence(Obj): You have to make specification of sequence:: class Extension(Sequence): - __slots__ = () schema = ( ("extnID", ObjectIdentifier()), ("critical", Boolean(default=False)), @@ -3620,7 +3619,7 @@ class Sequence(Obj): v = v_tail if spec.default is not None and value == spec.default: # Encoded default values are not valid in DER, - # but we still allow that + # but we allow that anyway continue values[name] = value if len(v) > 0: