summaryrefslogtreecommitdiff
path: root/Lib/pathlib.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-03-11 23:07:27 +0200
committerBerker Peksag <berker.peksag@gmail.com>2016-03-11 23:07:27 +0200
commit04d4229719055c9536da6d4b58033981ef86d0d2 (patch)
tree647b46ed6b971e472bfdce1d1538b4685cced106 /Lib/pathlib.py
parentca0250a87805d7f1f52d04a9dffa0944b2f13278 (diff)
downloadcpython-git-04d4229719055c9536da6d4b58033981ef86d0d2.tar.gz
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.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/pathlib.py b/Lib/pathlib.py
index 5169ff5e63..ed31ddb8dd 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")