예제 #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
예제 #2
0
 def sha(self):
     sh = SHABuilder()
     sh += self.name
     sh += str(self.type)
     sh += str(self.hasMain)
     return sh.sha()
예제 #3
0
파일: blob.py 프로젝트: lasote/common
 def sha(self):
     if self._sha is None:
         self._sha = SHABuilder(self.binary).sha()
     return self._sha
예제 #4
0
 def sha(self):
     sh = SHABuilder()
     sh += Cell.sha(self)
     sh += (str(self.dependencies))
     return sh.sha()