diff options
author | Benjamin Peterson <benjamin@python.org> | 2019-11-05 10:57:28 -0800 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2019-11-05 10:57:28 -0800 |
commit | 4309e8058147dd235c60b04d98afa3891bef014a (patch) | |
tree | f55be7bb57c5848cc14ea89681d6f7718fe19688 /six.py | |
parent | ec58185ed09153ec940ed3da52a58343780fee2a (diff) | |
download | six-git-4309e8058147dd235c60b04d98afa3891bef014a.tar.gz |
Clarify python_2_unicode_compatible is for classes.
Diffstat (limited to 'six.py')
-rw-r--r-- | six.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |