diff options
author | WeizhongTu <tuweizhong@163.com> | 2017-04-05 17:55:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-05 17:55:25 +0800 |
commit | 83986b38c673eb707e72305417cf8bfca375827b (patch) | |
tree | 6ef69897fd6f93216f2ac864703d7b64f1adf4d0 | |
parent | 631bc45e30d0b75b14b9200730ab672df947a5bb (diff) | |
download | django-appconf-83986b38c673eb707e72305417cf8bfca375827b.tar.gz |
sorted works well on set
sorted works well on set, so convert a set to list is not necessary and not efficient.
-rw-r--r-- | appconf/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/appconf/base.py b/appconf/base.py index d5788ba..c10535c 100644 --- a/appconf/base.py +++ b/appconf/base.py @@ -115,7 +115,7 @@ class AppConf(six.with_metaclass(AppConfMetaClass)): setattr(self, name, value) def __dir__(self): - return sorted(list(set(self._meta.names.keys()))) + return sorted(set(self._meta.names.keys())) # For instance access.. @property |