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

fix: 'str' object has no attribute 'removesuffix' in Python 3.8 #950

Merged
merged 4 commits into from Jan 8, 2024

Conversation

Ahmad-Wahid
Copy link
Contributor

Introduced a custom removesuffix function for removing a suffix from the URL, catering to Python 3.8 users since text.removesuffix is not a built-in feature in Python 3.8. Consider deprecating this function after discontinuing support for Python 3.8.

Signed-off-by: Ahmad Wahid <ahmedwahid16101@gmail.com>
@Ahmad-Wahid Ahmad-Wahid linked an issue Jan 2, 2024 that may be closed by this pull request
Signed-off-by: Ahmad Wahid <ahmedwahid16101@gmail.com>
@Ahmad-Wahid Ahmad-Wahid self-assigned this Jan 2, 2024
@Ahmad-Wahid Ahmad-Wahid added bug Something isn't working API labels Jan 2, 2024
@nhoening nhoening added this to the 0.19.0 milestone Jan 3, 2024
Signed-off-by: F.N. Claessen <felix@seita.nl>
Copy link
Contributor

@Flix6x Flix6x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only moved the changelog entry and added a note in the 0.17.1 entry about that one turning out to be an incomplete fix.

@Flix6x Flix6x merged commit 2bab4b3 into main Jan 8, 2024
7 of 9 checks passed
@Flix6x Flix6x deleted the 942-apiv3_0-public-endpoint-does-not-work-under-py38-1 branch January 8, 2024 22:20
Flix6x added a commit that referenced this pull request Jan 12, 2024
…n Python 3.8 (#950)

* fix suffix api issue

Signed-off-by: Ahmad Wahid <ahmedwahid16101@gmail.com>

* update changelog

Signed-off-by: Ahmad Wahid <ahmedwahid16101@gmail.com>

* docs: move changelog entry to 0.18.1

Signed-off-by: F.N. Claessen <felix@seita.nl>

---------

Signed-off-by: Ahmad Wahid <ahmedwahid16101@gmail.com>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Co-authored-by: F.N. Claessen <felix@seita.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/api/v3_0 public endpoint does not work under Py.38
3 participants