summaryrefslogtreecommitdiff
path: root/astroid/tree/scoped_nodes.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-12-29 17:08:06 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2015-12-29 17:08:06 +0200
commit736e08ced56ed3bdd8b84337e36fad192ccce0ca (patch)
treef9376b5326a7065e52a925b4527373703133ead1 /astroid/tree/scoped_nodes.py
parentd3577d48d9e8c408a231ad9fad37a6ebda4bd809 (diff)
downloadastroid-git-736e08ced56ed3bdd8b84337e36fad192ccce0ca.tar.gz
We're raising TypeError in 2.0 for old-style class operations, not NotImplementedError.
Diffstat (limited to 'astroid/tree/scoped_nodes.py')
-rw-r--r--astroid/tree/scoped_nodes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/tree/scoped_nodes.py b/astroid/tree/scoped_nodes.py
index 8c832b56..43c5cc06 100644
--- a/astroid/tree/scoped_nodes.py
+++ b/astroid/tree/scoped_nodes.py
@@ -2070,7 +2070,7 @@ class ClassDef(mixins.FilterStmtsMixin, LocalsDictNodeNG,
yield None
if not self.newstyle:
- raise NotImplementedError(
+ raise TypeError(
"The concept of slots is undefined for old-style classes.")
slots = list(grouped_slots())