MCPcopy Index your code
hub / github.com/RustPython/RustPython / _current

Method _current

Lib/hmac.py:172–182  ·  view source on GitHub ↗

Return a hash object for the current state. To be used only internally with digest() and hexdigest().

(self)

Source from the content-addressed store, hash-verified

170 return other
171
172 def _current(self):
173 """Return a hash object for the current state.
174
175 To be used only internally with digest() and hexdigest().
176 """
177 if self._hmac:
178 return self._hmac
179 else:
180 h = self._outer.copy()
181 h.update(self._inner.digest())
182 return h
183
184 def digest(self):
185 """Return the hash value of this hashing object.

Callers 2

digestMethod · 0.95
hexdigestMethod · 0.95

Calls 3

copyMethod · 0.45
updateMethod · 0.45
digestMethod · 0.45

Tested by

no test coverage detected