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

Several language fixes and a performance test #1199

Merged
merged 11 commits into from
Jul 20, 2023

Conversation

marksmayo
Copy link
Contributor

fixed commas for py 3.5+
SIM117 - multiple withs
Fixed use of ternary operator
used list() instead of a list comprehension
rewrite dict.get(key, None) as simply dict.get(key)
added performance test file

Removed trailing commas where not allowed
Added trailing commas according to new standards
In Python 3, a single with block can include multiple context managers.

Combining multiple context managers into a single with statement will minimize the indentation depth of the code, making it more readable.
Reasonable change, simplifies code
@coveralls
Copy link

Coverage Status

coverage: 88.4% (+0.2%) from 88.21% when pulling 24e644e on marksmayo:master into de9d5f1 on wireservice:master.

@jpmckinney jpmckinney merged commit 05e9d1b into wireservice:master Jul 20, 2023
17 checks passed
@jpmckinney
Copy link
Member

Thanks!

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.

3 participants