コード例 #1
0
ファイル: files.py プロジェクト: veecue/bundlewrap
 def content_hash(self):
     if self.attributes['content_type'] == 'binary':
         return hash_local_file(self.template)
     else:
         return sha1(self.content)
コード例 #2
0
ファイル: files.py プロジェクト: jrragan/bundlewrap
 def content_hash(self):
     if self.attributes['content_type'] == 'binary':
         return hash_local_file(self.template)
     else:
         return sha1(self.content)
コード例 #3
0
ファイル: files.py プロジェクト: bundlewrap/bundlewrap
 def content_hash(self):
     if self.attributes["content_type"] == "binary":
         return hash_local_file(self.template)
     else:
         return sha1(self.content)