forked from orbit-oss/flask
Merge branch '1.0.x'
This commit is contained in:
commit
29111a3259
8 changed files with 35 additions and 65 deletions
|
|
@ -63,7 +63,7 @@ def with_metaclass(meta, *bases):
|
|||
# dummy metaclass for one level of class instantiation that replaces
|
||||
# itself with the actual metaclass.
|
||||
class metaclass(type):
|
||||
def __new__(mcs, name, this_bases, d):
|
||||
def __new__(metacls, name, this_bases, d):
|
||||
return meta(name, bases, d)
|
||||
|
||||
return type.__new__(metaclass, "temporary_class", (), {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue