diff options
| author | cerevra <[email protected]> | 2022-02-10 16:45:59 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:45:59 +0300 |
| commit | 4f292c7e2fd0a41da93fda51b2d440c979a330b7 (patch) | |
| tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /contrib/python/protobuf/py3 | |
| parent | bf41dd01f6c920583e9faae7cd55ed25e547e052 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/protobuf/py3')
| -rw-r--r-- | contrib/python/protobuf/py3/google/protobuf/pyext/message.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/python/protobuf/py3/google/protobuf/pyext/message.cc b/contrib/python/protobuf/py3/google/protobuf/pyext/message.cc index 5b333fe386f..8b41ca47dd0 100644 --- a/contrib/python/protobuf/py3/google/protobuf/pyext/message.cc +++ b/contrib/python/protobuf/py3/google/protobuf/pyext/message.cc @@ -730,7 +730,7 @@ bool IsValidUTF8(PyObject* obj) { } } -bool AllowInvalidUTF8(const FieldDescriptor* field) { return false; } +bool AllowInvalidUTF8(const FieldDescriptor* field) { return false; } PyObject* CheckString(PyObject* arg, const FieldDescriptor* descriptor) { GOOGLE_DCHECK(descriptor->type() == FieldDescriptor::TYPE_STRING || @@ -741,7 +741,7 @@ PyObject* CheckString(PyObject* arg, const FieldDescriptor* descriptor) { return NULL; } - if (!IsValidUTF8(arg) && !AllowInvalidUTF8(descriptor)) { + if (!IsValidUTF8(arg) && !AllowInvalidUTF8(descriptor)) { PyObject* repr = PyObject_Repr(arg); PyErr_Format(PyExc_ValueError, "%s has type str, but isn't valid UTF-8 " |
