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.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pyasn1/codec/native/encoder.py b/pyasn1/codec/native/encoder.py
index a3e17a9..0001916 100644
--- a/pyasn1/codec/native/encoder.py
+++ b/pyasn1/codec/native/encoder.py
@@ -225,12 +225,11 @@ class SingleItemEncoder(object):
class Encoder(object):
- SINGLE_ITEM_ENCODER = SingleItemEncoder
+ SINGLE_ITEM_ENCODER = SingleItemEncoder()
@classmethod
def __call__(cls, pyObject, asn1Spec=None, **kwargs):
- singleItemEncoder = cls.SINGLE_ITEM_ENCODER()
- return singleItemEncoder(pyObject, asn1Spec=asn1Spec, **kwargs)
+ return cls.SINGLE_ITEM_ENCODER(pyObject, asn1Spec=asn1Spec, **kwargs)
#: Turns ASN.1 object into a Python built-in type object(s).