Iterate a generator expression instead of a temporary list

Co-Authored-By: Bruno Oliveira <nicoddemus@gmail.com>
This commit is contained in:
Christoph Bülter 2019-12-06 08:40:49 +01:00 committed by GitHub
parent a326fa22c6
commit 3a0f436c1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: