diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-03-11 21:08:11 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-03-11 21:08:11 (GMT) |
commit | d0e9b6919f5764c20dfeae720b28e80652ddb00e (patch) | |
tree | cbf8f6e2cc4bd51b13f72ae33f334fae6d09c7fc /Lib/pathlib.py | |
parent | a55553d7e3f86d5f2475720823ec2ac7f944e3e6 (diff) | |
parent | 04d4229719055c9536da6d4b58033981ef86d0d2 (diff) | |
download | cpython-d0e9b6919f5764c20dfeae720b28e80652ddb00e.zip cpython-d0e9b6919f5764c20dfeae720b28e80652ddb00e.tar.gz cpython-d0e9b6919f5764c20dfeae720b28e80652ddb00e.tar.bz2 |
Issue #20589: Invoking Path.owner() and Path.group() on Windows now raise
NotImplementedError instead of ImportError.
Diffstat (limited to 'Lib/pathlib.py')
-rw-r--r-- | Lib/pathlib.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/pathlib.py b/Lib/pathlib.py index 5169ff5..ed31ddb 100644 --- a/Lib/pathlib.py +++ b/Lib/pathlib.py @@ -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") |