def id_to_string(self, package_id):
        """
        Convert a package id to a nice string representation.
        """
        package = self.package_by_id(abs(package_id))
        if 0 > package_id:
            return "+" + str(package)
        else:
            return "-" + str(package)

    #------------------------
    # Repository priority API
    #------------------------
dataset/ETHPy150Open enthought/depsolver/depsolver/pool.py/Pool.id_to_string/swapped operands of `>`