From a13c2fbc9ed0ad93d709cba0dbc6a334a1142861 Mon Sep 17 00:00:00 2001 From: Mike Kruskal Date: Fri, 11 Nov 2022 15:02:59 -0800 Subject: [PATCH] Internal change PiperOrigin-RevId: 487925995 --- python/google/protobuf/internal/wire_format.py | 2 +- python/google/protobuf/pyext/unknown_field_set.cc | 2 +- python/google/protobuf/pyext/unknown_fields.cc | 5 +++-- python/google/protobuf/text_format.py | 2 +- src/google/protobuf/io/zero_copy_stream_unittest.cc | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/python/google/protobuf/internal/wire_format.py b/python/google/protobuf/internal/wire_format.py index 94346a75ab..1f54414b1a 100644 --- a/python/google/protobuf/internal/wire_format.py +++ b/python/google/protobuf/internal/wire_format.py @@ -43,7 +43,7 @@ TAG_TYPE_MASK = (1 << TAG_TYPE_BITS) - 1 # 0x7 # These numbers identify the wire type of a protocol buffer value. # We use the least-significant TAG_TYPE_BITS bits of the varint-encoded # tag-and-type to store one of these WIRETYPE_* constants. -# These values must match WireType enum in //net/proto2/public/wire_format.h. +# These values must match WireType enum in //google/protobuf/wire_format.h. WIRETYPE_VARINT = 0 WIRETYPE_FIXED64 = 1 WIRETYPE_LENGTH_DELIMITED = 2 diff --git a/python/google/protobuf/pyext/unknown_field_set.cc b/python/google/protobuf/pyext/unknown_field_set.cc index 5cc48e714b..59d1d0bb65 100644 --- a/python/google/protobuf/pyext/unknown_field_set.cc +++ b/python/google/protobuf/pyext/unknown_field_set.cc @@ -38,9 +38,9 @@ #include "google/protobuf/message.h" #include "google/protobuf/unknown_field_set.h" -#include "google/protobuf/wire_format_lite.h" #include "google/protobuf/pyext/message.h" #include "google/protobuf/pyext/scoped_pyobject_ptr.h" +#include "google/protobuf/wire_format_lite.h" namespace google { namespace protobuf { diff --git a/python/google/protobuf/pyext/unknown_fields.cc b/python/google/protobuf/pyext/unknown_fields.cc index 9f27f26c37..bb6549d33a 100644 --- a/python/google/protobuf/pyext/unknown_fields.cc +++ b/python/google/protobuf/pyext/unknown_fields.cc @@ -32,13 +32,14 @@ #define PY_SSIZE_T_CLEAN #include -#include + #include +#include #include "google/protobuf/message.h" +#include "google/protobuf/unknown_field_set.h" #include "google/protobuf/pyext/message.h" #include "google/protobuf/pyext/scoped_pyobject_ptr.h" -#include "google/protobuf/unknown_field_set.h" #include "google/protobuf/wire_format_lite.h" namespace google { diff --git a/python/google/protobuf/text_format.py b/python/google/protobuf/text_format.py index 460affc34c..367523c1ee 100644 --- a/python/google/protobuf/text_format.py +++ b/python/google/protobuf/text_format.py @@ -340,7 +340,7 @@ def _BuildMessageFromTypeName(type_name, descriptor_pool): return message_type() -# These values must match WireType enum in //net/proto2/public/wire_format.h. +# These values must match WireType enum in //google/protobuf/wire_format.h. WIRETYPE_LENGTH_DELIMITED = 2 WIRETYPE_START_GROUP = 3 diff --git a/src/google/protobuf/io/zero_copy_stream_unittest.cc b/src/google/protobuf/io/zero_copy_stream_unittest.cc index 59307102b6..4b7d3fcdad 100644 --- a/src/google/protobuf/io/zero_copy_stream_unittest.cc +++ b/src/google/protobuf/io/zero_copy_stream_unittest.cc @@ -64,10 +64,10 @@ #include #include "google/protobuf/testing/file.h" -#include "google/protobuf/test_util2.h" #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/io/io_win32.h" #include "google/protobuf/io/zero_copy_stream_impl.h" +#include "google/protobuf/test_util2.h" #if HAVE_ZLIB #include "google/protobuf/io/gzip_stream.h"