summaryrefslogtreecommitdiff
path: root/apt/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'apt/package.py')
-rw-r--r--apt/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt/package.py b/apt/package.py
index 7dcead02..228a3385 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -120,7 +120,7 @@ class DeprecatedProperty(property):
self.__doc__ = (doc or fget.__doc__ or '')
def __get__(self, obj, type_=None):
- if obj is not None and "PYTHON_APT_DEPRECATION_WARNINGS" in os.environ:
+ if obj is not None:
warnings.warn("Accessed deprecated property %s.%s, please see the "
"Version class for alternatives." %
((obj.__class__.__name__ or type_.__name__),