diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-12-29 17:08:06 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-12-29 17:08:06 +0200 |
commit | 736e08ced56ed3bdd8b84337e36fad192ccce0ca (patch) | |
tree | f9376b5326a7065e52a925b4527373703133ead1 /astroid/tree/scoped_nodes.py | |
parent | d3577d48d9e8c408a231ad9fad37a6ebda4bd809 (diff) | |
download | astroid-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.py | 2 |
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()) |