summaryrefslogtreecommitdiff
path: root/pyasn1/codec/native/decoder.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyasn1/codec/native/decoder.py')
-rw-r--r--pyasn1/codec/native/decoder.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pyasn1/codec/native/decoder.py b/pyasn1/codec/native/decoder.py
index ecb1b16..04ae129 100644
--- a/pyasn1/codec/native/decoder.py
+++ b/pyasn1/codec/native/decoder.py
@@ -181,12 +181,11 @@ class SingleItemDecoder(object):
class Decoder(object):
- SINGLE_ITEM_DECODER = SingleItemDecoder
+ SINGLE_ITEM_DECODER = SingleItemDecoder()
@classmethod
def __call__(cls, pyObject, asn1Spec=None, **kwargs):
- singleItemDecoder = cls.SINGLE_ITEM_DECODER()
- return singleItemDecoder(pyObject, asn1Spec=asn1Spec, **kwargs)
+ return cls.SINGLE_ITEM_DECODER(pyObject, asn1Spec=asn1Spec, **kwargs)
#: Turns Python objects of built-in types into ASN.1 objects.