python-benedict/benedict/serializers/abstract.py

16 lines
304 B
Python

# -*- coding: utf-8 -*-
class AbstractSerializer(object):
def __init__(self):
super(AbstractSerializer, self).__init__()
@staticmethod
def decode(s, **kwargs):
raise NotImplementedError()
@staticmethod
def encode(d, **kwargs):
raise NotImplementedError()