diff options
author | Thomas Grainger <tagrain@gmail.com> | 2014-09-16 10:32:06 +0100 |
---|---|---|
committer | Thomas Grainger <tagrain@gmail.com> | 2014-09-16 10:32:06 +0100 |
commit | 318a802db349df01dde2071942034c979d899c5e (patch) | |
tree | 22b0711a2b069c4125b000d8139e731cc28462ca /six.py | |
parent | 31bb060cf15425eee88a43b1239c90c0d023186f (diff) | |
download | six-318a802db349df01dde2071942034c979d899c5e.tar.gz |
add tests for python_2_unicode_comapatible
Diffstat (limited to 'six.py')
-rw-r--r-- | six.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -746,7 +746,7 @@ def python_2_unicode_compatible(klass): To support Python 2 and 3 with a single code base, define a __str__ method returning text and apply this decorator to the class. """ - if six.PY2: + if PY2: if '__str__' not in klass.__dict__: raise ValueError("@python_2_unicode_compatible cannot be applied " "to %s because it doesn't define __str__()." % |