Ejemplo n.º 1
0
 def _add_hash(self, hashes, item_hash, item, i):
     if item_hash in hashes:
         hashes[item_hash].indexes.append(i)
     else:
         hashes[item_hash] = IndexedHash(indexes=[i], item=item)
Ejemplo n.º 2
0
 def add_hash(hashes, item_hash, item, i):
     if item_hash in hashes:
         hashes[item_hash].indexes.append(i)
     else:
         hashes[item_hash] = IndexedHash([i], item)