Skip to content

Update Python 2 examples in docs to Python 3#525

Merged
JonathanHuot merged 1 commit intorequests:masterfrom
dosisod:update-docs
Feb 25, 2024
Merged

Update Python 2 examples in docs to Python 3#525
JonathanHuot merged 1 commit intorequests:masterfrom
dosisod:update-docs

Conversation

@dosisod
Copy link
Copy Markdown
Contributor

@dosisod dosisod commented Jan 13, 2024

I recently came across this library and saw that it still had Python 2 references in the docs. I saw #523 was open, so I went ahead and updated the documentation to use Python 3 examples.

Once #523 is merged this could be merged as well.


(Out of scope, but leaving this here for now, could make this a separate issue)

Now that we're dropping Python <=3.7 there are a lot of Python 3 related changes and quality of life improvements we can now make:

  • Add type annotations
  • Remove remaining Python 2 compatibility checks
  • Improve testing infrastructure

I wouldn't mind working on these in my free time if we decide these would be useful!

@JonathanHuot JonathanHuot merged commit 4f5e75d into requests:master Feb 25, 2024
@JonathanHuot
Copy link
Copy Markdown
Contributor

JonathanHuot commented Feb 25, 2024

Will be happy to merge any code drop of py2; thanks for this one already !

@JonathanHuot JonathanHuot added docs clean-up Remove dead code. Formatting. Whitespace/readability. labels Feb 25, 2024
@JonathanHuot JonathanHuot added this to the 1.4.0 milestone Feb 25, 2024
@dosisod dosisod deleted the update-docs branch March 1, 2024 07:46
@dosisod dosisod mentioned this pull request Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clean-up Remove dead code. Formatting. Whitespace/readability. docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants