Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
As ofGH-118793, thewarnings module is used only once in pathlib, byPurePath.is_reserved(). We should be able to move theimport warnings line into that method. But beware! Doing so seems to cause a failure intest_io, which needs further investigation.
Linked PRs
- gh-119049: Fix incorrect usage of
GET_WARNINGS_ATTR#119063 - [3.13] gh-119049: Fix incorrect display of warning which is constructed by C API (GH-119063) #119106
- gh-119049: Defer
import warningsinpathlib._locals#119111 - [3.12] gh-119049: Fix incorrect display of warning which is constructed by C API (GH-119063) #119119