aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJisi Liu <jisi.liu@gmail.com>2017-07-19 13:55:58 -0700
committerJisi Liu <jisi.liu@gmail.com>2017-07-19 13:55:58 -0700
commitb07cdb6e8eb63bbca5a80a821f4d6a6a730305b0 (patch)
tree6b29638105060f53d60b38f02d56c2be43a06313 /python
parente45214e312ed617cfd935955a792badd7137f688 (diff)
downloadprotobuf-b07cdb6e8eb63bbca5a80a821f4d6a6a730305b0.tar.gz
protobuf-b07cdb6e8eb63bbca5a80a821f4d6a6a730305b0.tar.bz2
protobuf-b07cdb6e8eb63bbca5a80a821f4d6a6a730305b0.zip
Use itmes() instead of itervalues() to be python3 compatbile.
Diffstat (limited to 'python')
-rw-r--r--python/google/protobuf/descriptor_pool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/google/protobuf/descriptor_pool.py b/python/google/protobuf/descriptor_pool.py
index b3df593f..1f8ee124 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.items():
self._file_desc_by_toplevel_extension[
extension.full_name] = file_desc