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

refactor: replace .format with f-strings #102

Merged
merged 2 commits into from Dec 23, 2021
Merged

refactor: replace .format with f-strings #102

merged 2 commits into from Dec 23, 2021

Conversation

miketheman
Copy link
Owner

We no longer support Python 2.7, or anything below Python 3.6.
We can now safely use f-strings and terser syntax.

refactor: remove unnecessary parsing

The httpbin fixture gives us both host and port attributes, so we
can use them directly instead of parsing a constructed URL from the same
parts.

We no longer support Python 2.7, or anything below Python 3.6.

We can now safely use f-strings and terser syntax.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
The `httpbin` fixture gives us both `host` and `port` attributes, so we
can use them directly instead of parsing a constructed URL from the same
parts.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
@miketheman miketheman added the chore General maintenance items label Dec 23, 2021
@codeclimate
Copy link

codeclimate bot commented Dec 23, 2021

Code Climate has analyzed commit 94b3d03 and detected 0 issues on this pull request.

View more on Code Climate.

@miketheman miketheman merged commit dd9cc75 into main Dec 23, 2021
@miketheman miketheman deleted the retire-non-py3 branch December 23, 2021 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore General maintenance items
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant