Use iter instead of __iter__.
Corrent two places this was used.
This commit is contained in:
parent
f94ee172c9
commit
f50b8bb8e8
@ -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."""
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user