def toxml(self):
        template = ('<resource><urn>%s</urn><type>%s</type><id>%s</id>'
                    + '<available>%r</available></resource>')
        return (self.urn(), self._type, self._id, self.available) % template
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/ext/geni/am.py/Resource.toxml/swapped operands of `%`