diff --git a/qutebrowser/config/sections.py b/qutebrowser/config/sections.py index 15b6a096e..254348fe9 100644 --- a/qutebrowser/config/sections.py +++ b/qutebrowser/config/sections.py @@ -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.""" diff --git a/tests/helpers/stubs.py b/tests/helpers/stubs.py index a144f9f98..752a41cd8 100644 --- a/tests/helpers/stubs.py +++ b/tests/helpers/stubs.py @@ -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]