mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Removed uneeded iter() calls with generator expression as argument.
This commit is contained in:
parent
b8c48d06fa
commit
b1a2ad6925
2 changed files with 5 additions and 5 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue