diff options
author | Ilya Etingof <etingof@gmail.com> | 2017-11-09 12:43:15 +0100 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2017-11-09 12:43:15 +0100 |
commit | 1d718f7b7445f71cfe16efd127150dfb72d7ccaa (patch) | |
tree | 28ec2c0e00edaedab47f1b3d8bbbcd597fb25e68 | |
parent | 12a69bbbc4307b101b68c25dd62a0b6fee4ad4ef (diff) | |
download | pyasn1-git-1d718f7b7445f71cfe16efd127150dfb72d7ccaa.tar.gz |
reset unused Choice component to `noValue`, not `None`
-rw-r--r-- | pyasn1/type/univ.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyasn1/type/univ.py b/pyasn1/type/univ.py index 788dcd5..923f992 100644 --- a/pyasn1/type/univ.py +++ b/pyasn1/type/univ.py @@ -2549,7 +2549,7 @@ class Choice(Set): Set.setComponentByPosition(self, idx, value, verifyConstraints, matchTags, matchConstraints) self._currentIdx = idx if oldIdx is not None and oldIdx != idx: - self._componentValues[oldIdx] = None + self._componentValues[oldIdx] = noValue return self @property |