Replaced "not PY3" by "PY2", new in six 1.4.0.

This commit is contained in:
Aymeric Augustin 2013-09-02 12:06:32 +02:00
parent 4292097078
commit 365c3e8b73
27 changed files with 47 additions and 49 deletions

View file

@ -19,7 +19,7 @@ class MyModel(six.with_metaclass(CustomBaseModel, models.Model)):
# This is done to ensure that for Python2 only, defining metaclasses
# still does not fail to create the model.
if not six.PY3:
if six.PY2:
class MyModel(models.Model):
"""Model subclass with a custom base using __metaclass__."""
__metaclass__ = CustomBaseModel