Skip to content

refactor: replace .format with f-strings#102

Merged
miketheman merged 2 commits intomainfrom
retire-non-py3
Dec 23, 2021
Merged

refactor: replace .format with f-strings#102
miketheman merged 2 commits intomainfrom
retire-non-py3

Conversation

@miketheman
Copy link
Copy Markdown
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
@qlty-cloud-legacy
Copy link
Copy Markdown

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.

1 participant