Description: ntpath is not in python-minimal, replace module-level imports with
 local imports in functions that actually require ntpath.
Forwarded: not-needed
--- a/Lib/pathlib/__init__.py
+++ b/Lib/pathlib/__init__.py
@@ -6,7 +6,6 @@ operating systems.
 """
 
 import io
-import ntpath
 import operator
 import os
 import posixpath
@@ -133,6 +132,7 @@ class PurePath:
         return object.__new__(cls)
 
     def __init__(self, *args):
+        import ntpath
         paths = []
         for arg in args:
             if isinstance(arg, PurePath):
@@ -521,6 +521,7 @@ class PurePath:
     def is_reserved(self):
         """Return True if the path contains one of the special names reserved
         by the system, if any."""
+        import ntpath
         import warnings
         msg = ("pathlib.PurePath.is_reserved() is deprecated and scheduled "
                "for removal in Python 3.15. Use os.path.isreserved() to "
@@ -619,6 +620,7 @@ class PureWindowsPath(PurePath):
     On a Windows system, instantiating a PurePath should return this object.
     However, you can also instantiate it directly on any system.
     """
+    import ntpath
     parser = ntpath
     __slots__ = ()
 
