Iterate a generator expression instead of a temporary list
Co-Authored-By: Bruno Oliveira <nicoddemus@gmail.com>
This commit is contained in:
parent
a326fa22c6
commit
3a0f436c1a
|
@ -63,7 +63,7 @@ class KeywordMapping:
|
|||
|
||||
"""
|
||||
subname = subname.lower()
|
||||
names = [name.lower() for name in self._names]
|
||||
names = (name.lower() for name in self._names)
|
||||
|
||||
for name in names:
|
||||
if subname in name:
|
||||
|
|
Loading…
Reference in New Issue