summaryrefslogtreecommitdiff
path: root/Python/ast.c
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-03-06 15:33:24 -0500
committerBrett Cannon <brett@python.org>2012-03-06 15:33:24 -0500
commitf67e494ca8dfc72c0f812ed46c6a08ad3b9ddc24 (patch)
treeceed84488164142e5884411566de19f66702c3e7 /Python/ast.c
parent0d4d410b2d6891520b1772a85f5ebdf926a0c77e (diff)
parent0119e4753eec50f671ee716af202b4a1ca28deef (diff)
downloadcpython-git-f67e494ca8dfc72c0f812ed46c6a08ad3b9ddc24.tar.gz
merge
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;