From 4309e8058147dd235c60b04d98afa3891bef014a Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 5 Nov 2019 10:57:28 -0800 Subject: [PATCH] Clarify python_2_unicode_compatible is for classes. --- six.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/six.py b/six.py index 357e624ab..d0aece89f 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