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

[PR #10102/7557b03d backport][3.11] Fix deprecated calls to guess_type for paths with Python 3.13 #10103

Conversation

patchback[bot]
Copy link
Contributor

@patchback patchback bot commented Dec 4, 2024

This is a backport of PR #10102 as merged into master (7557b03).

What do these changes do?

https://docs.python.org/3/library/mimetypes.html#mimetypes.guess_type

Deprecated since version 3.13: Passing a file path instead of URL is soft deprecated. Use guess_file_type() for this.

These should have been changed to guess_file_type on Python 3.13 as guess_type expects a URL and guess_file_type expects a path. Its a soft deprecation so they still work but that may change in the future.

Are there changes in behavior for the user?

no

Is it a substantial burden for the maintainers to support this?

no

@bdraco bdraco enabled auto-merge (squash) December 4, 2024 19:21
Copy link

codspeed-hq bot commented Dec 4, 2024

CodSpeed Performance Report

Merging #10103 will not alter performance

Comparing patchback/backports/3.11/7557b03da53a51a21dbd66ee8206755fdcd0d728/pr-10102 (ee344c8) with 3.11 (c41ffc7)

Summary

✅ 46 untouched benchmarks

Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.06%. Comparing base (c41ffc7) to head (ee344c8).
Report is 1 commits behind head on 3.11.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             3.11   #10103      +/-   ##
==========================================
- Coverage   98.06%   98.06%   -0.01%     
==========================================
  Files         123      123              
  Lines       37090    37098       +8     
  Branches     4457     4459       +2     
==========================================
+ Hits        36374    36381       +7     
  Misses        540      540              
- Partials      176      177       +1     
Flag Coverage Δ
CI-GHA 97.95% <80.00%> (-0.01%) ⬇️
OS-Linux 97.65% <80.00%> (-0.02%) ⬇️
OS-Windows 94.57% <80.00%> (-0.01%) ⬇️
OS-macOS 96.77% <80.00%> (-0.02%) ⬇️
Py-3.10.11 96.62% <60.00%> (-0.01%) ⬇️
Py-3.10.15 97.21% <60.00%> (+0.03%) ⬆️
Py-3.11.10 97.27% <60.00%> (+0.02%) ⬆️
Py-3.11.9 96.70% <60.00%> (-0.01%) ⬇️
Py-3.12.7 97.72% <60.00%> (-0.02%) ⬇️
Py-3.13.0 97.71% <60.00%> (-0.02%) ⬇️
Py-3.9.13 96.55% <60.00%> (-0.03%) ⬇️
Py-3.9.20 97.09% <60.00%> (-0.05%) ⬇️
Py-pypy7.3.16 96.70% <60.00%> (-0.01%) ⬇️
VM-macos 96.77% <80.00%> (-0.02%) ⬇️
VM-ubuntu 97.65% <80.00%> (-0.02%) ⬇️
VM-windows 94.57% <80.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bdraco bdraco merged commit 23a4b31 into 3.11 Dec 4, 2024
32 checks passed
@bdraco bdraco deleted the patchback/backports/3.11/7557b03da53a51a21dbd66ee8206755fdcd0d728/pr-10102 branch December 4, 2024 19:37
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.

1 participant