summaryrefslogtreecommitdiffstats
path: root/Python/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ast.c')
-rw-r--r--Python/ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c
index dde0d04..93334dc 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -2879,7 +2879,7 @@ static PyObject *
parsestr(const char *s, const char *encoding)
{
size_t len;
- int quote = *s;
+ int quote = Py_CHARMASK(*s);
int rawmode = 0;
int need_encoding;
int unicode = 0;