Forgot to exclude modules

This commit is contained in:
Kovid Goyal 2021-02-16 13:57:23 +05:30
parent 55e7f69768
commit 4cf73204a2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -126,7 +126,7 @@ def all_kitten_names() -> FrozenSet[str]:
from importlib.resources import contents from importlib.resources import contents
ans = [] ans = []
for name in contents('kittens'): for name in contents('kittens'):
if '__' not in name and name != 'tui': if '__' not in name and '.' not in name and name != 'tui':
ans.append(name) ans.append(name)
return frozenset(ans) return frozenset(ans)