From 833c046fb703f9c5ef6bd8b05c4aa1d7e2ecec0e Mon Sep 17 00:00:00 2001 From: Dan O'Reilly Date: Thu, 13 Aug 2015 01:17:26 -0400 Subject: Fixing some tests Signed-off-by: Dan O'Reilly --- python/google/protobuf/internal/python_message.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'python/google/protobuf/internal/python_message.py') 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() -- cgit v1.2.3