| 186 | |
| 187 | |
| 188 | class Decoder(object): |
| 189 | SINGLE_ITEM_DECODER = SingleItemDecoder |
| 190 | |
| 191 | def __init__(self, **options): |
| 192 | self._singleItemDecoder = self.SINGLE_ITEM_DECODER(**options) |
| 193 | |
| 194 | def __call__(self, pyObject, asn1Spec=None, **kwargs): |
| 195 | return self._singleItemDecoder(pyObject, asn1Spec=asn1Spec, **kwargs) |
| 196 | |
| 197 | |
| 198 | #: Turns Python objects of built-in types into ASN.1 objects. |