use extend method for simplification.

Co-authored-by: Christian Mäder <cimnine@users.noreply.github.com>
This commit is contained in:
comphilip 2020-10-27 21:12:26 +08:00 committed by GitHub
parent a3c21ae0ac
commit 7694fd320a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -17,6 +17,5 @@ def __getattr__(name):
def __dir__():
names = []
for config in _loaded_configurations:
for name in config.__dir__():
names.append(name)
names.extend(config.__dir__())
return names