summaryrefslogtreecommitdiff
path: root/astroid/tree/scoped_nodes.py
diff options
context:
space:
mode:
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())