summaryrefslogtreecommitdiff
path: root/pyasn1/codec/ber/encoder.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyasn1/codec/ber/encoder.py')
-rw-r--r--pyasn1/codec/ber/encoder.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pyasn1/codec/ber/encoder.py b/pyasn1/codec/ber/encoder.py
index 6b77b70..e80a007 100644
--- a/pyasn1/codec/ber/encoder.py
+++ b/pyasn1/codec/ber/encoder.py
@@ -846,12 +846,11 @@ class SingleItemEncoder(object):
class Encoder(object):
- SINGLE_ITEM_ENCODER = SingleItemEncoder
+ SINGLE_ITEM_ENCODER = SingleItemEncoder()
@classmethod
def __call__(cls, pyObject, asn1Spec=None, **options):
- singleItemEncoder = cls.SINGLE_ITEM_ENCODER()
- return singleItemEncoder(pyObject, asn1Spec=asn1Spec, **options)
+ return cls.SINGLE_ITEM_ENCODER(pyObject, asn1Spec=asn1Spec, **options)
#: Turns ASN.1 object into BER octet stream.