Skip to content

Conversation

@equaeghe
Copy link

In the code, there was often both a check for whether a certain key was in a dict and a conditional access of the corresponding value. This can be elegantly combined in a single call to the dict get method, whose default value if the key is not in the dict is None.
Using the get method instead of the check and conditional access makes it possible to simplify the code in various places.
This is done so in this patch.

In the code, there was often both a check for whether a certain key was in a dict and a conditional access of the corresponding value. This can be elegantly combined in a single call to the dict get method, whose default value if the key is not in the dict is None.
Using the get method instead of the check and conditional access makes it possible to simplify the code in various places.
This is done so in this patch.
@coveralls
Copy link

coveralls commented Jun 15, 2020

Coverage Status

Coverage decreased (-0.01%) to 97.868% when pulling bafb96e on equaeghe:equaeghe-patch-1 into 24aac86 on Alir3z4:master.

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