diff options
author | Dan O'Reilly <oreilldf@gmail.com> | 2015-08-13 01:17:26 -0400 |
---|---|---|
committer | Dan O'Reilly <oreilldf@gmail.com> | 2015-08-13 01:17:26 -0400 |
commit | 833c046fb703f9c5ef6bd8b05c4aa1d7e2ecec0e (patch) | |
tree | cb46803a7135ec6fc4b9a7b3f695d98d7c0b4fa7 /python/google/protobuf/internal/python_message.py | |
parent | e47cdd5a559f488ba52756927ce68f4cf93874fa (diff) | |
download | protobuf-833c046fb703f9c5ef6bd8b05c4aa1d7e2ecec0e.tar.gz protobuf-833c046fb703f9c5ef6bd8b05c4aa1d7e2ecec0e.tar.bz2 protobuf-833c046fb703f9c5ef6bd8b05c4aa1d7e2ecec0e.zip |
Fixing some tests
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
Diffstat (limited to 'python/google/protobuf/internal/python_message.py')
-rwxr-xr-x | python/google/protobuf/internal/python_message.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/python/google/protobuf/internal/python_message.py b/python/google/protobuf/internal/python_message.py index bb06beb3..9a72315e 100755 --- a/python/google/protobuf/internal/python_message.py +++ b/python/google/protobuf/internal/python_message.py @@ -59,7 +59,6 @@ import weakref import six import six.moves.copyreg as copyreg -import six.string_types # We use "as" to avoid name collisions with variables. from google.protobuf.internal import containers @@ -1120,7 +1119,7 @@ def _AddIsInitializedMethod(message_descriptor, cls): # ScalarMaps can't have any initialization errors. pass elif field.label == _FieldDescriptor.LABEL_REPEATED: - for i in xrange(len(value)): + for i in range(len(value)): element = value[i] prefix = "%s[%d]." % (name, i) sub_errors = element.FindInitializationErrors() |