Esempio n. 1
0
    def _compute_fingerprint(self):
        def fingerprint_iter():
            for req in self:
                assert (isinstance(req, ZefRequirement))
                yield stable_json_hash(repr(req))

        return combine_hashes(fingerprint_iter())
Esempio n. 2
0
 def _compute_fingerprint(self):
   def hashes_iter():
     for item in self:
       if isinstance(item, six.text_type):
         yield sha1(item.encode('utf-8')).hexdigest()
       elif isinstance(item, six.binary_type):
         yield sha1(item).hexdigest()
       elif isinstance(item, JarDependency):
         yield sha1(item.cache_key()).hexdigest()
   return combine_hashes(hashes_iter())
Esempio n. 3
0
File: doc.py Progetto: jtrobec/pants
 def _compute_fingerprint(self):
     return combine_hashes(artifact.fingerprint() for artifact in self)
Esempio n. 4
0
 def _compute_fingerprint(self):
   return combine_hashes(map(BundleField._hash_bundle, self))
Esempio n. 5
0
 def fingerprint(self):
     return combine_hashes(
         [self.wiki.fingerprint(),
          stable_json_sha1(self.config)])
Esempio n. 6
0
File: doc.py Progetto: jduan/pants
 def _compute_fingerprint(self):
   return combine_hashes(artifact.fingerprint() for artifact in self)
Esempio n. 7
0
 def _compute_fingerprint(self):
     return combine_hashes(map(BundleField._hash_bundle, self))
Esempio n. 8
0
 def fingerprint(self):
   return combine_hashes([self.wiki.fingerprint(), stable_json_sha1(self.config)])