saltstack-formulas / django-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Apache License 2.0
42 stars 26 forks source link

Deprecated iteritems() method not forward-compatible with Python 3 #6

Open xenophonf opened 9 years ago

xenophonf commented 9 years ago

Formulas iterating over dictionaries should use the items() method instead of iteritems() because the latter method has been removed from Python 3. While the items() method in Python 2 uses more memory than iteritems(), these dictionaries are typically small (e.g., sets of settings from Pillar).