def __setattr__(self, name, value):
self_has_attr = True<EOL>try:<EOL><INDENT>super(_MyHashlibAlgo, self).__getattribute__(name)<EOL><DEDENT>except AttributeError:<EOL><INDENT>self_has_attr = False<EOL><DEDENT>if (name == "<STR_LIT>" or not hasattr(self, "<STR_LIT>") or<EOL>not hasattr(self._obj, name) or self_has_attr):<EOL><INDENT>return super(_MyHashlibAlgo, self).__setattr__(name, value)<EOL><DEDENT>else:<EOL><INDENT>return setattr(self._obj, name, value)<EOL><DEDENT>
Redirect set attribute to self._obj if necessary.