mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #20589: Invoking Path.owner() and Path.group() on Windows now raise
NotImplementedError instead of ImportError.
This commit is contained in:
parent
ca0250a878
commit
04d4229719
3 changed files with 18 additions and 0 deletions
|
@ -1425,3 +1425,9 @@ class PosixPath(Path, PurePosixPath):
|
|||
|
||||
class WindowsPath(Path, PureWindowsPath):
|
||||
__slots__ = ()
|
||||
|
||||
def owner(self):
|
||||
raise NotImplementedError("Path.owner() is unsupported on this system")
|
||||
|
||||
def group(self):
|
||||
raise NotImplementedError("Path.group() is unsupported on this system")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue