def write_style(self, name, body):
        """
        Write the contents of an SLD to the file system in the location
        specified by the SLD_ROOT setting.
        """
        dest = '%s%s:%s.sld' % (settings.SLD_ROOT, self.ns, name,)
        try:
            sld = open(dest, 'w')
            sld.write(body)
            sld.close()

            logger.debug(dest % 'Saved "%s" style file')

            return True
        except Exception, ex:
            logger.warn('Could not save "%s" style' % dest)
            return False
dataset/ETHPy150Open PublicMapping/DistrictBuilder/django/publicmapping/redistricting/config.py/SpatialUtils.write_style/swapped operands of `%`