Fix code to use values() instead

pull/3393/head
Jisi Liu 7 years ago
parent 1876a27e66
commit dd091aad48
  1. 2
      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.items():
for extension in file_desc.extensions_by_name.values():
self._file_desc_by_toplevel_extension[
extension.full_name] = file_desc

Loading…
Cancel
Save