summaryrefslogtreecommitdiff
path: root/Modules/pwdmodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-12-05 23:23:06 +0200
committerGitHub <noreply@github.com>2018-12-05 23:23:06 +0200
commitac8b47c8b4edd59aaee857717d434df52ec49e6c (patch)
tree04f189d3192316d806f97024652acb43307d37dc /Modules/pwdmodule.c
parent1de91a0032fed500ddd3d8c4fb7a38c0b8719f67 (diff)
downloadcpython-git-ac8b47c8b4edd59aaee857717d434df52ec49e6c.tar.gz
bpo-34604: Use %R because of invisible characters or trailing whitespaces. (GH-9165). (GH-10947)
(cherry picked from commit 34c7f0c04e2b4e715b2c3df1875af8939fbe7d0b) Co-authored-by: William Grzybowski <wg@FreeBSD.org>
Diffstat (limited to 'Modules/pwdmodule.c')
-rw-r--r--Modules/pwdmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c
index 21c2b546f6..810427a229 100644
--- a/Modules/pwdmodule.c
+++ b/Modules/pwdmodule.c
@@ -163,7 +163,7 @@ pwd_getpwnam_impl(PyObject *module, PyObject *arg)
goto out;
if ((p = getpwnam(name)) == NULL) {
PyErr_Format(PyExc_KeyError,
- "getpwnam(): name not found: %S", arg);
+ "getpwnam(): name not found: %R", arg);
goto out;
}
retval = mkpwent(p);