Use iter instead of __iter__.

Corrent two places this was used.
This commit is contained in:
Ryan Roden-Corrent 2016-06-30 07:11:51 -04:00
parent f94ee172c9
commit f50b8bb8e8
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ class Section:
def __iter__(self):
"""Iterate over all set values."""
return self.values.__iter__()
return iter(self.values)
def __bool__(self):
"""Get boolean state of section."""

View File

@ -362,7 +362,7 @@ class FakeConfigSection:
def __iter__(self):
"""Iterate over all set values."""
return self.values.__iter__()
return iter(self.values)
def __getitem__(self, key):
return self.values[key]