def bcrypt_set_password(self, raw_password):
if not is_enabled() or raw_password is None:<EOL><INDENT>_set_password(self, raw_password)<EOL><DEDENT>else:<EOL><INDENT>salt = bcrypt.gensalt(get_rounds())<EOL>self.password = '<STR_LIT>' + bcrypt.hashpw(smart_str(raw_password), salt)<EOL><DEDENT>
Sets the user's password to *raw_password*, hashed with bcrypt.