Skip to content

replace dict.iteritems() with dict.items() to support py3#39

Merged
keszybz merged 1 commit intosystemd:masterfrom
toracle:support-py3
Mar 11, 2017
Merged

replace dict.iteritems() with dict.items() to support py3#39
keszybz merged 1 commit intosystemd:masterfrom
toracle:support-py3

Conversation

@toracle
Copy link
Copy Markdown
Contributor

@toracle toracle commented Jan 12, 2017

py3 doesn't have dict.iteritems() anymore so it fails under py3 env. So replace dict.iteritems() with dict.items(). six.iteritems() can be used but it requires six as a dependency library.

Previous test cases doesn't reveals the failure under py3 env so introduce a MockSender and inject sender function to increase testability.

py3 doesn't have dict.iteritems() anymore.
@keszybz keszybz merged commit dce0a85 into systemd:master Mar 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants