
from __future__ import unicode_literals, absolute_import

from collections import Mapping
from abc import ABCMeta

from .base_api_json_object import BaseAPIJSONObject, BaseAPIJSONObjectMeta
from ..util.compat import with_metaclass


class APIJSONObjectMeta(BaseAPIJSONObjectMeta, ABCMeta):
    """
    Avoid conflicting metaclass definitions for APIJSONObject.
    http://code.activestate.com/recipes/204197-solving-the-metaclass-conflict/
    """
    pass


class APIJSONObject(with_metaclass(APIJSONObjectMeta, BaseAPIJSONObject, Mapping)):
    """Class representing objects that are not part of the REST API."""

    def __len__(self):
        return len(self._response_object)

    def __iter__(self):
        return iter(self._response_object)


from __future__ import unicode_literals, absolute_import

from collections import Mapping
from abc import ABCMeta

from .base_api_json_object import BaseAPIJSONObject, BaseAPIJSONObjectMeta
from ..util.compat import with_metaclass


class APIJSONObjectMeta(BaseAPIJSONObjectMeta, ABCMeta):
    """
    Avoid conflicting metaclass definitions for APIJSONObject.
    http://code.activestate.com/recipes/204197-solving-the-metaclass-conflict/
    """
    pass


class APIJSONObject(with_metaclass(APIJSONObjectMeta, BaseAPIJSONObject, Mapping)):
    """Class representing objects that are not part of the REST API."""

    def __len__(self):
        return len(self._response_object)

Remove redundant __iter__ from APIJsonObject base class
Remove redundant __iter__ from APIJsonObject base class

  
  from __future__ import unicode_literals, absolute_import
  
  from collections import Mapping
  from abc import ABCMeta
  
  from .base_api_json_object import BaseAPIJSONObject, BaseAPIJSONObjectMeta
  from ..util.compat import with_metaclass
  
  
  class APIJSONObjectMeta(BaseAPIJSONObjectMeta, ABCMeta):
      """
      Avoid conflicting metaclass definitions for APIJSONObject.
      http://code.activestate.com/recipes/204197-solving-the-metaclass-conflict/
      """
      pass
  
  
  class APIJSONObject(with_metaclass(APIJSONObjectMeta, BaseAPIJSONObject, Mapping)):
      """Class representing objects that are not part of the REST API."""
  
      def __len__(self):
          return len(self._response_object)
  
-     def __iter__(self):
-         return iter(self._response_object)
- 
Remove redundant __iter__ from APIJsonObject base class
## Code Before:

from __future__ import unicode_literals, absolute_import

from collections import Mapping
from abc import ABCMeta

from .base_api_json_object import BaseAPIJSONObject, BaseAPIJSONObjectMeta
from ..util.compat import with_metaclass


class APIJSONObjectMeta(BaseAPIJSONObjectMeta, ABCMeta):
    """
    Avoid conflicting metaclass definitions for APIJSONObject.
    http://code.activestate.com/recipes/204197-solving-the-metaclass-conflict/
    """
    pass


class APIJSONObject(with_metaclass(APIJSONObjectMeta, BaseAPIJSONObject, Mapping)):
    """Class representing objects that are not part of the REST API."""

    def __len__(self):
        return len(self._response_object)

    def __iter__(self):
        return iter(self._response_object)

## Instruction:
Remove redundant __iter__ from APIJsonObject base class
## Code After:

from __future__ import unicode_literals, absolute_import

from collections import Mapping
from abc import ABCMeta

from .base_api_json_object import BaseAPIJSONObject, BaseAPIJSONObjectMeta
from ..util.compat import with_metaclass


class APIJSONObjectMeta(BaseAPIJSONObjectMeta, ABCMeta):
    """
    Avoid conflicting metaclass definitions for APIJSONObject.
    http://code.activestate.com/recipes/204197-solving-the-metaclass-conflict/
    """
    pass


class APIJSONObject(with_metaclass(APIJSONObjectMeta, BaseAPIJSONObject, Mapping)):
    """Class representing objects that are not part of the REST API."""

    def __len__(self):
        return len(self._response_object)
