Exemplo 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
Exemplo n.º 2
0
 def sha(self):
     sh = SHABuilder()
     sh += self.name
     sh += str(self.type)
     sh += str(self.hasMain)
     return sh.sha()
Exemplo n.º 3
0
 def sha(self):
     if self._sha is None:
         self._sha = SHABuilder(self.binary).sha()
     return self._sha
Exemplo n.º 4
0
 def sha(self):
     sh = SHABuilder()
     sh += Cell.sha(self)
     sh += (str(self.dependencies))
     return sh.sha()