diff options
author | Ilya Etingof <etingof@gmail.com> | 2019-07-31 21:40:15 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2019-07-31 21:40:15 +0200 |
commit | fb824beb47f0e58463bb9a4b4b50bd804f30b9f2 (patch) | |
tree | ddd5036bcb6125b4d592eb6e4e3399de1b24f8a4 /pyasn1 | |
parent | fc10c68fabf184116aaf1915e41a4f5fd21a4a27 (diff) | |
download | pyasn1-git-fb824beb47f0e58463bb9a4b4b50bd804f30b9f2.tar.gz |
Fix failing unit tests on Py25
Diffstat (limited to 'pyasn1')
-rw-r--r-- | pyasn1/type/univ.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pyasn1/type/univ.py b/pyasn1/type/univ.py index 86e9855..b39c533 100644 --- a/pyasn1/type/univ.py +++ b/pyasn1/type/univ.py @@ -1695,6 +1695,9 @@ class SequenceOfAndSetOfBase(base.ConstructedAsn1Type): indices, values = zip(*self._componentValues.items()) + # TODO: remove when Py2.5 support is gone + values = list(values) + try: return indices[values.index(value, start, stop)] |