Skip to content

Commit

Permalink
Clarify python_2_unicode_compatible is for classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminp committed Nov 5, 2019
1 parent ec58185 commit 4309e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion six.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4309e80

Please sign in to comment.