diff options
author | jdemeyer <jdemeyer@cage.ugent.be> | 2017-09-17 20:08:11 +0200 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2017-09-17 11:08:11 -0700 |
commit | 024fcbb9c6f18a79b1e65f7bb9233c49cdd7fe88 (patch) | |
tree | d0c18eb13069b57a7b154d27f069bb32e05c4a1b | |
parent | bdc84baaac0071c12cf09a83dbe7a9bbabe4b5cb (diff) | |
download | six-git-024fcbb9c6f18a79b1e65f7bb9233c49cdd7fe88.tar.gz |
Temporary metaclass should not inherit from "meta" (#191)
-rw-r--r-- | six.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -821,7 +821,7 @@ def with_metaclass(meta, *bases): # This requires a bit of explanation: the basic idea is to make a dummy # metaclass for one level of class instantiation that replaces itself with # the actual metaclass. - class metaclass(meta): + class metaclass(type): def __new__(cls, name, this_bases, d): return meta(name, bases, d) |