summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2019-11-05 10:57:28 -0800
committerBenjamin Peterson <benjamin@python.org>2019-11-05 10:57:28 -0800
commit4309e8058147dd235c60b04d98afa3891bef014a (patch)
treef55be7bb57c5848cc14ea89681d6f7718fe19688
parentec58185ed09153ec940ed3da52a58343780fee2a (diff)
downloadsix-git-4309e8058147dd235c60b04d98afa3891bef014a.tar.gz
Clarify python_2_unicode_compatible is for classes.
-rw-r--r--six.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/six.py b/six.py
index 357e624..d0aece8 100644
--- a/six.py
+++ b/six.py
@@ -922,7 +922,7 @@ def ensure_text(s, encoding='utf-8', errors='strict'):
def python_2_unicode_compatible(klass):
"""
- A decorator that defines __unicode__ and __str__ methods under Python 2.
+ A class decorator that defines __unicode__ and __str__ methods under Python 2.
Under Python 3 it does nothing.
To support Python 2 and 3 with a single code base, define a __str__ method