Fix typo in warning about the deprecated use of message.UnknownFields(). The message.UnknownFields() support will be removed soon. PiperOrigin-RevId: 554598474
diff --git a/python/google/protobuf/internal/python_message.py b/python/google/protobuf/internal/python_message.py index 084c174..87c9b53 100755 --- a/python/google/protobuf/internal/python_message.py +++ b/python/google/protobuf/internal/python_message.py
@@ -1364,8 +1364,8 @@ def _UnknownFields(self): warnings.warn( 'message.UnknownFields() is deprecated. Please use the add one ' - 'feature message_factotry.UnknownFieldSet(message) in ' - 'message_factotry.py instead.' + 'feature message_factory.UnknownFieldSet(message) in ' + 'message_factory.py instead.' ) if self._unknown_field_set is None: # pylint: disable=protected-access # pylint: disable=protected-access
diff --git a/python/google/protobuf/pyext/message.cc b/python/google/protobuf/pyext/message.cc index 0ad8285..4b7fe99 100644 --- a/python/google/protobuf/pyext/message.cc +++ b/python/google/protobuf/pyext/message.cc
@@ -2370,8 +2370,8 @@ static PyObject* GetUnknownFields(CMessage* self) { PyErr_Warn(nullptr, "message.UnknownFields() is deprecated. Please use the " - "add one feature message_factotry.UnknownFieldSet(message) in " - "message_factotry.py instead."); + "add one feature message_factory.UnknownFieldSet(message) in " + "message_factory.py instead."); if (self->unknown_field_set == nullptr) { self->unknown_field_set = unknown_fields::NewPyUnknownFields(self); } else {