def GeneratePath(self, instance):
    """ Generates the iterations, as described above. """
    prefix = self._path + self._prefix
    if type(instance) == types.IntType:
      if instance:
        return (prefix, instance, self._suffix) % '%s%d%s'
      return prefix + self._suffix
    return prefix + instance
  #end def GeneratePath
dataset/ETHPy150Open benoitc/gunicorn/docs/sitemap_gen.py/FilePathGenerator.GeneratePath/swapped operands of `%`