summaryrefslogtreecommitdiff
path: root/astroid/mixins.py
diff options
context:
space:
mode:
authorCeridwen <ceridwenv@gmail.com>2015-08-22 12:03:25 -0400
committerCeridwen <ceridwenv@gmail.com>2015-08-22 12:03:25 -0400
commitf8c69f357b1849ce3b0fb5b32e823778e110cb46 (patch)
treebf5c17594e0f7e3dc164560693d4453a655b2566 /astroid/mixins.py
parentbc5c89cff3f5b5d65b5b8916cc7254661d68e63c (diff)
downloadastroid-git-f8c69f357b1849ce3b0fb5b32e823778e110cb46.tar.gz
Add deprecation warnings tests
Diffstat (limited to 'astroid/mixins.py')
-rw-r--r--astroid/mixins.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/astroid/mixins.py b/astroid/mixins.py
index 87834f10..0882268f 100644
--- a/astroid/mixins.py
+++ b/astroid/mixins.py
@@ -59,8 +59,8 @@ class FilterStmtsMixin(object):
return self
def ass_type(self):
- warnings.warn('%s.ass_type() is deprecated, '
- 'use %s.assign_type() instead.'
+ warnings.warn('%s.ass_type() is deprecated and slated for removal '
+ 'in astroid 2.0, use %s.assign_type() instead.'
% (type(self).__name__, type(self).__name__),
PendingDeprecationWarning)
return self.assign_type()
@@ -72,8 +72,8 @@ class AssignTypeMixin(object):
return self
def ass_type(self):
- warnings.warn('%s.ass_type() is deprecated, '
- 'use %s.assign_type() instead.'
+ warnings.warn('%s.ass_type() is deprecated and slated for removal '
+ 'in astroid 2.0, use %s.assign_type() instead.'
% (type(self).__name__, type(self).__name__),
PendingDeprecationWarning)
return self.assign_type()
@@ -95,8 +95,8 @@ class ParentAssignTypeMixin(AssignTypeMixin):
return self.parent.assign_type()
def ass_type(self):
- warnings.warn('%s.ass_type() is deprecated, '
- 'use %s.assign_type() instead.'
+ warnings.warn('%s.ass_type() is deprecated and slated for removal '
+ 'in astroid 2.0, use %s.assign_type() instead.'
% (type(self).__name__, type(self).__name__),
PendingDeprecationWarning)
return self.assign_type()