Esempio n. 1
0
 def sha(self):
     """ get the sha of this blob, compute lazily if necessary
     """
     if self._sha is None:
         self._sha = SHABuilder(self.bytes).sha()
     return self._sha
Esempio n. 2
0
 def sha(self):
     sh = SHABuilder()
     sh += self.name
     sh += str(self.type)
     sh += str(self.hasMain)
     return sh.sha()
Esempio n. 3
0
 def sha(self):
     if self._sha is None:
         self._sha = SHABuilder(self.binary).sha()
     return self._sha
Esempio n. 4
0
 def sha(self):
     sh = SHABuilder()
     sh += Cell.sha(self)
     sh += (str(self.dependencies))
     return sh.sha()