aboutsummaryrefslogtreecommitdiff
path: root/pyasn1/type
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2017-07-29 18:31:52 +0200
committerIlya Etingof <etingof@gmail.com>2017-07-29 18:31:52 +0200
commit135ab65b34212b31c11db3d7c8b0cc02a112c89f (patch)
tree147d0c11a0a0ab3567937e88eb23919f09164b36 /pyasn1/type
parent7c5db3287f2a99e830066279b1973b61eb11453e (diff)
downloadpyasn1-135ab65b34212b31c11db3d7c8b0cc02a112c89f.tar.gz
fixed nested optional SET/SEQUENCE at CER/DER codec
Diffstat (limited to 'pyasn1/type')
-rw-r--r--pyasn1/type/univ.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pyasn1/type/univ.py b/pyasn1/type/univ.py
index 59644c1..5767dd8 100644
--- a/pyasn1/type/univ.py
+++ b/pyasn1/type/univ.py
@@ -2209,7 +2209,9 @@ class SequenceAndSetBase(base.AbstractConstructedAsn1Item):
for idx, subComponentType in enumerate(componentType.namedTypes):
if subComponentType.isDefaulted or subComponentType.isOptional:
continue
- if not self._componentValues or self._componentValues[idx] is None or not self._componentValues[idx].isValue:
+ if (not self._componentValues or
+ self._componentValues[idx] is None or
+ not self._componentValues[idx].isValue):
return False
else: