diff options
author | Ilya Etingof <etingof@gmail.com> | 2017-09-02 00:03:48 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2017-09-02 00:03:48 +0200 |
commit | dbeb8b423bde649899cac009f65501f25e0de4d3 (patch) | |
tree | 5a8ddca2e816c2a0b75dbb23d3ea362ccd6ca10f /pyasn1/type | |
parent | 8c9265dded6c09af11c53f81bb8312ced9bac5e1 (diff) | |
download | pyasn1-dbeb8b423bde649899cac009f65501f25e0de4d3.tar.gz |
fixed Sequence.__repr__ crash when no componentType property is present
Diffstat (limited to 'pyasn1/type')
-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 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) ) |