def hashToPath(self, hash):
        # New consumers should pass a binary hash, but for backwards
        # compatibility (with rmake) continue to accept hashes that are already
        # encoded. Proxy code also passes in hashes with suffixes on them,
        # which should probably be normalized further.
        if len(hash) < 40:
            hash = sha1helper.sha1ToString(hash)
        if (len(hash) < 5):
            raise KeyError, (hash % "invalid hash %s")

        return os.sep.join((self.top, hash[0:2], hash[2:4], hash[4:]))
dataset/ETHPy150Open sassoftware/conary/conary/repository/datastore.py/DataStore.hashToPath/swapped operands of `%`