summaryrefslogtreecommitdiff
path: root/django/utils/functional.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-09-02 12:06:32 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-09-02 12:11:02 +0200
commit365c3e8b73eab825a8ecd0cf8046e1a0824ccd45 (patch)
treef22f78037da5fa34250851e1dace72c4b2e77e78 /django/utils/functional.py
parent4292097078279226cb725c2921011fb14634b9af (diff)
Replaced "not PY3" by "PY2", new in six 1.4.0.
Diffstat (limited to 'django/utils/functional.py')
-rw-r--r--django/utils/functional.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py
index 9cc703fe84..bfd59e5340 100644
--- a/django/utils/functional.py
+++ b/django/utils/functional.py
@@ -167,7 +167,7 @@ def lazy(func, *resultclasses):
return hash(self.__cast())
def __mod__(self, rhs):
- if self._delegate_bytes and not six.PY3:
+ if self._delegate_bytes and six.PY2:
return bytes(self) % rhs
elif self._delegate_text:
return six.text_type(self) % rhs