old_contents: from aiocache.log import logger
  
  
  try:
      import ujson as json
  except ImportError:
      logger.warning("ujson module not found, usin json")
      import json
  
  try:
      import cPickle as pickle
  except ImportError:
      logger.warning("cPickle module not found, using pickle")
      import pickle
  
  
  class DefaultSerializer:
      """
      Converts all input values to str. All return values are also str. Be
      careful because this means that if you store an ``int(1)``, you will get
      back '1'.
  
      The transformation is done by just casting to str in the ``dumps`` method.
  
      If you want to keep python types, use ``PickleSerializer``. ``JsonSerializer``
      may also be useful to keep type of symple python types.
      """
      encoding = 'utf-8'
  
      def __init__(self, *args, **kwargs):
          super().__init__(*args, **kwargs)
  
      def dumps(self, value):
          """
          Serialize the received value casting it to str.
  
          :param value: obj Anything support cast to str
          :returns: str
          """
          return str(value)
  
      def loads(self, value):
          """
          Returns value back without transformations
          """
          return value
  
  
  class PickleSerializer(DefaultSerializer):
      """
      Transform data to bytes using pickle.dumps and pickle.loads to retrieve it back.
      """
      encoding = None
  
      def dumps(self, value):
          """
          Serialize the received value using ``pickle.dumps``.
  
          :param value: obj
          :returns: bytes
          """
          return pickle.dumps(value)
  
      def loads(self, value):
          """
          Deserialize value using ``pickle.loads``.
  
          :param value: bytes
          :returns: obj
          """
          if value is None:
              return None
          return pickle.loads(value)
  
  
  class JsonSerializer(DefaultSerializer):
      """
      Transform data to json string with json.dumps and json.loads to retrieve it back. Check
      https://docs.python.org/3/library/json.html#py-to-json-table for how types are converted.
      """
  
      def dumps(self, value):
          """
          Serialize the received value using ``json.dumps``.
  
          :param value: dict
          :returns: str
          """
          return json.dumps(value)
  
      def loads(self, value):
          """
          Deserialize value using ``json.loads``.
  
          :param value: str
          :returns: output of ``json.loads``.
          """
          if value is None:
              return None
          return json.loads(value)
  
new_contents: from aiocache.log import logger
  
  
  try:
      import ujson as json
  except ImportError:
      logger.warning("ujson module not found, usin json")
      import json
  
  import pickle
  
  
  class DefaultSerializer:
      """
      Converts all input values to str. All return values are also str. Be
      careful because this means that if you store an ``int(1)``, you will get
      back '1'.
  
      The transformation is done by just casting to str in the ``dumps`` method.
  
      If you want to keep python types, use ``PickleSerializer``. ``JsonSerializer``
      may also be useful to keep type of symple python types.
      """
      encoding = 'utf-8'
  
      def __init__(self, *args, **kwargs):
          super().__init__(*args, **kwargs)
  
      def dumps(self, value):
          """
          Serialize the received value casting it to str.
  
          :param value: obj Anything support cast to str
          :returns: str
          """
          return str(value)
  
      def loads(self, value):
          """
          Returns value back without transformations
          """
          return value
  
  
  class PickleSerializer(DefaultSerializer):
      """
      Transform data to bytes using pickle.dumps and pickle.loads to retrieve it back.
      """
      encoding = None
  
      def dumps(self, value):
          """
          Serialize the received value using ``pickle.dumps``.
  
          :param value: obj
          :returns: bytes
          """
          return pickle.dumps(value)
  
      def loads(self, value):
          """
          Deserialize value using ``pickle.loads``.
  
          :param value: bytes
          :returns: obj
          """
          if value is None:
              return None
          return pickle.loads(value)
  
  
  class JsonSerializer(DefaultSerializer):
      """
      Transform data to json string with json.dumps and json.loads to retrieve it back. Check
      https://docs.python.org/3/library/json.html#py-to-json-table for how types are converted.
      """
  
      def dumps(self, value):
          """
          Serialize the received value using ``json.dumps``.
  
          :param value: dict
          :returns: str
          """
          return json.dumps(value)
  
      def loads(self, value):
          """
          Deserialize value using ``json.loads``.
  
          :param value: str
          :returns: output of ``json.loads``.
          """
          if value is None:
              return None
          return json.loads(value)
  
subject: Remove unnecessary warning (#200)