diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-09-02 12:06:32 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-09-02 12:11:02 +0200 |
| commit | 365c3e8b73eab825a8ecd0cf8046e1a0824ccd45 (patch) | |
| tree | f22f78037da5fa34250851e1dace72c4b2e77e78 /django/utils/functional.py | |
| parent | 4292097078279226cb725c2921011fb14634b9af (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.py | 2 |
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 |
