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.