Switch to using six for all dictionary iteration.
Review Request #9566 — Created Feb. 1, 2018 and submitted — Latest diff uploaded
This changes all
.items()
,.iteritems()
,.keys()
, etc. calls to
usesix
equivalents instead, getting us a step closer to Python 3
compatibility.The logic hasn't changed, except for an optimization to
diff.py
where
an unnecessary call toATTRIBUTE_DEFAULTS.keys()
was being called for
every model in every app.
Unit tests pass on all supported database types and Django versions.
Diff Revision 1 (Latest)
django_evolution/diff.py |
---|
django_evolution/evolve.py |
---|
django_evolution/mock_models.py |
---|
django_evolution/mutations.py |
---|
django_evolution/signature.py |
---|
django_evolution/compat/db.py |
---|
django_evolution/db/common.py |
---|
django_evolution/management/__init__.py |
---|
django_evolution/tests/test_database_sig.py |
---|
django_evolution/tests/test_delete_app.py |
---|