if b == TagNInt:
i, v = _int(v[1:])
return (-1 - i), v
- if (b == TagList) and _allowContainers:
+ if not _allowContainers:
+ raise DecodeError("unknown tag")
+ if b == TagList:
ret = []
v = v[1:]
while True:
break
ret.append(i)
return ret, v
- if (b == TagMap) and _allowContainers:
+ if b == TagMap:
ret = {}
v = v[1:]
kPrev = ""
if sets and allNILs:
ret = set(ret.keys())
return ret, v
- if (b == TagBlob) and _allowContainers:
+ if b == TagBlob:
if len(v) < 1+8:
raise NotEnoughData(1+8-len(v))
l = 1 + int.from_bytes(v[1:1+8], "big")