summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2017-11-09 12:43:15 +0100
committerIlya Etingof <etingof@gmail.com>2017-11-09 12:43:15 +0100
commit1d718f7b7445f71cfe16efd127150dfb72d7ccaa (patch)
tree28ec2c0e00edaedab47f1b3d8bbbcd597fb25e68
parent12a69bbbc4307b101b68c25dd62a0b6fee4ad4ef (diff)
downloadpyasn1-git-1d718f7b7445f71cfe16efd127150dfb72d7ccaa.tar.gz
reset unused Choice component to `noValue`, not `None`
-rw-r--r--pyasn1/type/univ.py2
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