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

View File

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