diff options
author | Guido van Rossum <guido@python.org> | 1995-02-10 17:01:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-02-10 17:01:56 (GMT) |
commit | 7f7f27483996ae9fcb2ed4fb0a3690280cda7b4a (patch) | |
tree | 5d67635bbdfd2fe5bb0b055d532c371716c59d91 /Python/ceval.c | |
parent | 760dd1031a8db93dc53ae3eb836bcc44a36918a1 (diff) | |
download | cpython-7f7f27483996ae9fcb2ed4fb0a3690280cda7b4a.zip cpython-7f7f27483996ae9fcb2ed4fb0a3690280cda7b4a.tar.gz cpython-7f7f27483996ae9fcb2ed4fb0a3690280cda7b4a.tar.bz2 |
use Py_CHARMASK
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 48fce5b..411e7f3 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -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); } |