From ab2f65bb7f9083b5fac777f5e3b7872c58837f4f Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Tue, 21 Aug 2012 11:20:22 +0200 Subject: [PATCH] Removed obsolete __members__ definitions This was useful for pre-Python 2.6 support. See commit c6e8e5d9. --- django/conf/__init__.py | 3 --- django/utils/functional.py | 1 - 2 files changed, 4 deletions(-) diff --git a/django/conf/__init__.py b/django/conf/__init__.py index e1c3fd1808..35f4ec8397 100644 --- a/django/conf/__init__.py +++ b/django/conf/__init__.py @@ -160,9 +160,6 @@ class UserSettingsHolder(BaseSettings): def __dir__(self): return list(self.__dict__) + dir(self.default_settings) - # For Python < 2.6: - __members__ = property(lambda self: self.__dir__()) - settings = LazySettings() diff --git a/django/utils/functional.py b/django/utils/functional.py index 085ec40b63..085a8fce59 100644 --- a/django/utils/functional.py +++ b/django/utils/functional.py @@ -238,7 +238,6 @@ class LazyObject(object): raise NotImplementedError # introspection support: - __members__ = property(lambda self: self.__dir__()) __dir__ = new_method_proxy(dir)