aboutsummaryrefslogtreecommitdiff
path: root/pyasn1/type
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2017-09-02 00:03:48 +0200
committerIlya Etingof <etingof@gmail.com>2017-09-02 00:03:48 +0200
commitdbeb8b423bde649899cac009f65501f25e0de4d3 (patch)
tree5a8ddca2e816c2a0b75dbb23d3ea362ccd6ca10f /pyasn1/type
parent8c9265dded6c09af11c53f81bb8312ced9bac5e1 (diff)
downloadpyasn1-dbeb8b423bde649899cac009f65501f25e0de4d3.tar.gz
fixed Sequence.__repr__ crash when no componentType property is present
Diffstat (limited to 'pyasn1/type')
-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 0b49c62..ffabf6d 100644
--- a/pyasn1/type/univ.py
+++ b/pyasn1/type/univ.py
@@ -2360,7 +2360,7 @@ class SequenceAndSetBase(base.AbstractConstructedAsn1Item):
if self.componentType:
representation += self.componentType.getNameByPosition(idx)
else:
- representation += self._idxToKeyMap[idx]
+ representation += self._dynamicNames.getNameByPosition(idx)
representation = '%s=%s\n' % (
representation, componentValue.prettyPrint(scope)
)