mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
use Py_CHARMASK
This commit is contained in:
parent
760dd1031a
commit
7f7f274839
5 changed files with 27 additions and 22 deletions
|
@ -753,7 +753,8 @@ eval_code(co, globals, locals, owner, arg)
|
|||
/* XXX move into writeobject() ? */
|
||||
char *s = getstringvalue(v);
|
||||
int len = getstringsize(v);
|
||||
if (len > 0 && isspace(s[len-1]) &&
|
||||
if (len > 0 &&
|
||||
isspace(Py_CHARMASK(s[len-1])) &&
|
||||
s[len-1] != ' ')
|
||||
softspace(w, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue