def of_bytes(self, py_bytes):
m = self.hash_algo()<EOL>m.update(py_bytes)<EOL>if self.return_int:<EOL><INDENT>return int(m.hexdigest(), <NUM_LIT:16>)<EOL><DEDENT>else:<EOL><INDENT>return m.hexdigest()<EOL><DEDENT>
Use default hash method to return hash value of bytes.