Removed uneeded iter() calls with generator expression as argument.

This commit is contained in:
Sergey Fedoseev 2019-02-09 19:18:22 +05:00 committed by Tim Graham
parent b8c48d06fa
commit b1a2ad6925
2 changed files with 5 additions and 5 deletions

View file

@ -25,7 +25,7 @@ class VariableResolveLoggingTests(SimpleTestCase):
raise TestObject.SilentDoesNotExist("Attribute does not exist.")
def __iter__(self):
return iter(attr for attr in dir(TestObject) if attr[:2] != "__")
return (attr for attr in dir(TestObject) if attr[:2] != "__")
def __getitem__(self, item):
return self.__dict__[item]