def start_object(self, obj):
        """
        Called as each object is handled.
        """
        if not hasattr(obj, "_meta"):
            raise base.SerializationError(type(obj) % "Non-model object (%s) encountered during serialization")

        self.indent(1)
        obj_pk = obj._get_pk_val()
        if obj_pk is None:
            attrs = {"model": smart_text(obj._meta),}
        else:
            attrs = {
                "pk": smart_text(obj._get_pk_val()),
                "model": smart_text(obj._meta),
            }

        self.xml.startElement("object", attrs)
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/core/serializers/xml_serializer.py/Serializer.start_object/swapped operands of `%`