diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-08-21 22:47:00 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-08-21 22:47:00 -0500 |
commit | 9751cea9b5e69e906f11e0203bf69ebc65dc9c0e (patch) | |
tree | 1766c29bebc788bc84ac918fbeace329968b3c24 | |
parent | 918918a8bdd836200598e9c0a79524c1095f915e (diff) | |
download | six-9751cea9b5e69e906f11e0203bf69ebc65dc9c0e.tar.gz |
fix class decorator emulation example
-rw-r--r-- | documentation/index.rst | 2 | ||||
-rw-r--r-- | six.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/documentation/index.rst b/documentation/index.rst index 1b22e32..524eee2 100644 --- a/documentation/index.rst +++ b/documentation/index.rst @@ -307,7 +307,7 @@ Python 2 and 3. class MyClass(object): ... - MyClass = add_metaclass(MyClass) + MyClass = add_metaclass(Meta)(MyClass) Binary and text data @@ -451,7 +451,7 @@ def add_metaclass(metaclass): class MyClass(object): ... - MyClass = add_metaclass(MyClass) + MyClass = add_metaclass(Meta)(MyClass) """ def wrapper(cls): orig_vars = cls.__dict__.copy() |