summaryrefslogtreecommitdiff
path: root/Python/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ast.c')
-rw-r--r--Python/ast.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/ast.c b/Python/ast.c
index c56564279b..0f93098712 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -3796,6 +3796,9 @@ parsestr(struct compiling *c, const node *n, int *bytesmode)
quote = *++s;
*bytesmode = 1;
}
+ else if (quote == 'u' || quote == 'U') {
+ quote = *++s;
+ }
else if (quote == 'r' || quote == 'R') {
quote = *++s;
rawmode = 1;