def deserialize(self, request=None, text=None, encoding='utf8'):

        if text is None:
            # Read in the text from the request.
            text = request.read()

        # Ensure we don't attempt to deserialize nothing.
        if text is None:
            raise ValueError

        try:
            # Attempt to desserialize the URL using the
            # URL decoder.
            data = {}
            for name, value in parse_qsl(text, keep_blank_values=True):
                # Ensure values are properly decoded if neccessary.
                if isinstance(value, six.binary_type):
                    value = value.decode(encoding)

                if isinstance(name, six.binary_type):
                    name = name.decode(encoding)

                # Initialize the array.
                if data not in name:
                    data[name] = []

                # Append the data value.
                data[name].append(value)

            return data

        except AttributeError:
            # Something went wront internally; bad input.
            raise ValueError
dataset/ETHPy150Open armet/python-armet/armet/deserializers/url.py/URLDeserializer.deserialize/swapped operands of `not in`