Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
34c7f0c0
Commit
34c7f0c0
authored
Dec 05, 2018
by
William Grzybowski
Committed by
Serhiy Storchaka
Dec 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-34604: Use %R because of invisible characters or trailing whitespaces. (GH-9165)
parent
25d38978
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
Misc/NEWS.d/next/Library/2018-09-07-10-16-34.bpo-34604.xL7-kG.rst
...S.d/next/Library/2018-09-07-10-16-34.bpo-34604.xL7-kG.rst
+2
-1
Modules/grpmodule.c
Modules/grpmodule.c
+1
-1
Modules/pwdmodule.c
Modules/pwdmodule.c
+1
-1
No files found.
Misc/NEWS.d/next/Library/2018-09-07-10-16-34.bpo-34604.xL7-kG.rst
View file @
34c7f0c0
Fix possible mojibake in the error message of `pwd.getpwnam` and
`grp.getgrnam`. Patch by William Grzybowski.
`grp.getgrnam` using string representation because of invisible characters
or trailing whitespaces. Patch by William Grzybowski.
Modules/grpmodule.c
View file @
34c7f0c0
...
...
@@ -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
;
}
...
...
Modules/pwdmodule.c
View file @
34c7f0c0
...
...
@@ -257,7 +257,7 @@ pwd_getpwnam_impl(PyObject *module, PyObject *name)
}
else
{
PyErr_Format
(
PyExc_KeyError
,
"getpwnam(): name not found: %
S
"
,
name
);
"getpwnam(): name not found: %
R
"
,
name
);
}
goto
out
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment