def _ToPb(self):
    for properties_to_index in self._searchable_properties:
      index_property_name = SearchableEntity.IndexPropertyName(properties_to_index)
      if index_property_name in self:
        del self[index_property_name]


      if not properties_to_index:
        properties_to_index = self.keys()

      index = set()
      for name in properties_to_index:
        if not self.has_key(name):
          continue

        values = self[name]
        if not isinstance(values, list):
          values = [values]

        if (isinstance(values[0], basestring) and
            not isinstance(values[0], datastore_types.Blob)):
          for value in values:
            index.update(SearchableEntity._FullTextIndex(
                value, self._word_delimiter_regex))

      index_list = list(index)
      if index_list:
        self[index_property_name] = index_list

    return super(SearchableEntity, self)._ToPb()
Test issues in multiline statements return code as expected.
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/search/__init__.py/SearchableEntity._ToPb--crossover with--dataset/ETHPy150Open openstack/bandit/tests/functional/test_functional.py/FunctionalTests.test_multiline_code