summaryrefslogtreecommitdiff
path: root/pyasn1/codec/native/encoder.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyasn1/codec/native/encoder.py')
-rw-r--r--pyasn1/codec/native/encoder.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/pyasn1/codec/native/encoder.py b/pyasn1/codec/native/encoder.py
index 7c5edc9..6b8ca6d 100644
--- a/pyasn1/codec/native/encoder.py
+++ b/pyasn1/codec/native/encoder.py
@@ -4,11 +4,7 @@
# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pyasn1/license.html
#
-try:
- from collections import OrderedDict
-
-except ImportError:
- OrderedDict = dict
+from collections import OrderedDict
from pyasn1 import debug
from pyasn1 import error
@@ -242,8 +238,7 @@ class Encoder(object):
#: of those.
#:
#: One exception is that instead of :py:class:`dict`, the :py:class:`OrderedDict`
-#: can be produced (whenever available) to preserve ordering of the components
-#: in ASN.1 SEQUENCE.
+#: is used to preserve ordering of the components in ASN.1 SEQUENCE.
#:
#: Parameters
#: ----------