From 478119fe77d8a11df83125e872d9f73afe353bf1 Mon Sep 17 00:00:00 2001 From: Feng Xiao Date: Thu, 20 Apr 2017 16:30:26 -0700 Subject: [PATCH] Fix python3 issue. --- python/google/protobuf/descriptor_pool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/google/protobuf/descriptor_pool.py b/python/google/protobuf/descriptor_pool.py index 7bd2506bb0..29e9f1e3f9 100644 --- a/python/google/protobuf/descriptor_pool.py +++ b/python/google/protobuf/descriptor_pool.py @@ -257,7 +257,7 @@ class DescriptorPool(object): self._AddFileDescriptor(file_desc) # TODO(jieluo): This is a temporary solution for FieldDescriptor.file. # Remove it when FieldDescriptor.file is added in code gen. - for extension in file_desc.extensions_by_name.itervalues(): + for extension in file_desc.extensions_by_name.values(): self._file_desc_by_toplevel_extension[ extension.full_name] = file_desc