Changeset e9edd7f in rtems-central
- Timestamp:
- 07/28/22 16:43:51 (14 months ago)
- Branches:
- master
- Children:
- 62645ad
- Parents:
- 67e7eca
- git-author:
- Sebastian Huber <sebastian.huber@…> (07/28/22 16:43:51)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (07/29/22 08:51:05)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rtemsspec/items.py
r67e7eca re9edd7f 172 172 173 173 174 def data_digest(data: Any) -> str: 175 """ Returns a digest of the data. """ 176 state = hashlib.sha512() 177 _hash_data(data, state) 178 return state.hexdigest() 179 180 174 181 class Item: 175 182 """ Objects of this class represent a specification item. """ … … 213 220 def digest(self) -> str: 214 221 """ Returns the digest of the item data. """ 215 state = hashlib.sha512() 216 _hash_data(self._data, state) 217 return state.hexdigest() 222 return data_digest(self._data) 218 223 219 224 def get(self, key: str, default: Any) -> Any:
Note: See TracChangeset
for help on using the changeset viewer.