summaryrefslogtreecommitdiffstats
path: root/Doc/library/spwd.rst
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-03-19 09:44:17 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-03-19 09:44:17 (GMT)
commit3c3d7f4b99b1f62567592ef57216e07677f17d7f (patch)
tree8965a590a381f1f7a933edc306f5bd90968f2c91 /Doc/library/spwd.rst
parentaf4a1f20bafe5bb38215d8b2cb1470bdf8fe4625 (diff)
downloadcpython-3c3d7f4b99b1f62567592ef57216e07677f17d7f.zip
cpython-3c3d7f4b99b1f62567592ef57216e07677f17d7f.tar.gz
cpython-3c3d7f4b99b1f62567592ef57216e07677f17d7f.tar.bz2
Issue #18787: spwd.getspnam() now raises a PermissionError if the user
doesn't have privileges.
Diffstat (limited to 'Doc/library/spwd.rst')
-rw-r--r--Doc/library/spwd.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/spwd.rst b/Doc/library/spwd.rst
index 58be78f..53f8c09 100644
--- a/Doc/library/spwd.rst
+++ b/Doc/library/spwd.rst
@@ -54,6 +54,9 @@ The following functions are defined:
Return the shadow password database entry for the given user name.
+ .. versionchanged:: 3.6
+ Raises a :exc:`PermissionError` instead of :exc:`KeyError` if the user
+ doesn't have privileges.
.. function:: getspall()