def __str__(self):
    size_token = ""
    if self._value > 1024 ** 3:
      size_token = "Gb"
      value = float(self._value) / 1024 ** 3
    elif self._value > 1024 ** 2:
      size_token = "Mb"
      value = float(self._value) / 1024 ** 2
    elif self._value > 1024:
      size_token = "Kb"
      value = float(self._value) / 1024
    else:
      return utils.SmartStr(self._value) + "b"

    return (value, size_token) % "%.1f%s"
dataset/ETHPy150Open google/grr/grr/lib/rdfvalue.py/ByteSize.__str__/swapped operands of `%`