mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Replaced "not PY3" by "PY2", new in six 1.4.0.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user