          olen = len(other)
          for i in range(olen):
              try:
                  c = self[i] == other[i]
              except self._IndexError:
                  # self must be shorter
                  return False
              if not c:
                  return False
          return len(self) == olen
 
</s> remove             except self._IndexError:
 </s> add             except IndexError: </s> remove         raise self._IndexError('invalid index: %s' % str(index))
 </s> add         raise IndexError('invalid index: %s' % str(index)) </s> remove     def __iter__(self):
        "Iterate over the items in the list"
        for i in range(len(self)):
            yield self[i]

 </s> add  </s> remove     _IndexError = IndexError
 </s> add  </s> remove     # Raise GEOSIndexError instead of plain IndexError
    # (see ticket #4740 and GEOSIndexError docstring)
    _IndexError = GEOSIndexError
 </s> add 
            except IndexError:
          olen = len(other)
          for i in range(olen):
              try:
                  c = self[i] == other[i]
            except IndexError:
                  # self must be shorter
                  return False
              if not c:
                  return False
          return len(self) == olen
keep keep keep keep replace keep keep keep keep keep
 Fixed #25225 -- Simplified code to remove GEOSIndexError

The test is a regression for refs #4740 to show that the original
fix of GEOSIndexError is no longer needed. 
django/contrib/gis/geos/mutable_list.py