summaryrefslogtreecommitdiffstats
path: root/Modules/grpmodule.c
diff options
context:
space:
mode:
authorWilliam Grzybowski <wg@FreeBSD.org>2018-12-05 19:10:18 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-12-05 19:10:18 (GMT)
commit34c7f0c04e2b4e715b2c3df1875af8939fbe7d0b (patch)
tree2c98fe3961ab4996e214782ddfc28b4639db5b2e /Modules/grpmodule.c
parent25d389789c59a52a31770f7c50ce9e02a8909190 (diff)
downloadcpython-34c7f0c04e2b4e715b2c3df1875af8939fbe7d0b.zip
cpython-34c7f0c04e2b4e715b2c3df1875af8939fbe7d0b.tar.gz
cpython-34c7f0c04e2b4e715b2c3df1875af8939fbe7d0b.tar.bz2
bpo-34604: Use %R because of invisible characters or trailing whitespaces. (GH-9165)
Diffstat (limited to 'Modules/grpmodule.c')
-rw-r--r--Modules/grpmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/grpmodule.c b/Modules/grpmodule.c
index d426f08..ab766b9 100644
--- a/Modules/grpmodule.c
+++ b/Modules/grpmodule.c
@@ -247,7 +247,7 @@ grp_getgrnam_impl(PyObject *module, PyObject *name)
PyErr_NoMemory();
}
else {
- PyErr_Format(PyExc_KeyError, "getgrnam(): name not found: %S", name);
+ PyErr_Format(PyExc_KeyError, "getgrnam(): name not found: %R", name);
}
goto out;
}