From 318a802db349df01dde2071942034c979d899c5e Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Tue, 16 Sep 2014 10:32:06 +0100 Subject: add tests for python_2_unicode_comapatible --- six.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'six.py') diff --git a/six.py b/six.py index 35530a3..e7667af 100644 --- a/six.py +++ b/six.py @@ -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__()." % -- cgit v1.2.1