Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #296 deprecated iteritems() and replace it with items() #330

Merged
merged 1 commit into from
Aug 28, 2017
Merged

fix #296 deprecated iteritems() and replace it with items() #330

merged 1 commit into from
Aug 28, 2017

Conversation

aboe76
Copy link
Member

@aboe76 aboe76 commented Aug 14, 2017

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).

@aboe76 aboe76 requested a review from 0xf10e August 14, 2017 11:16
@EvaSDK
Copy link

EvaSDK commented Aug 28, 2017

Seems trivially correct.

@aboe76
Copy link
Member Author

aboe76 commented Aug 28, 2017

@EvaSDK are you ok with selfie merge?

@EvaSDK
Copy link

EvaSDK commented Aug 28, 2017

Sure, it should be no problem here.

@aboe76 aboe76 merged commit 228f74b into saltstack-formulas:master Aug 28, 2017
@aboe76
Copy link
Member Author

aboe76 commented Aug 28, 2017

Thanks again for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants