def process_result_value(self, value, dialect): """Convert the hash to a PasswordHash, if it's non-NULL.""" if value is not None: return PasswordHash(value, rounds=self.rounds)