summaryrefslogtreecommitdiffstats
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 ddcd0a0..aa42fe8 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -3238,6 +3238,9 @@ parsestr(const char *s, const char *encoding)
quote = *++s;
unicode = 1;
}
+ if (quote == 'b' || quote == 'B') {
+ quote = *++s;
+ }
if (quote == 'r' || quote == 'R') {
quote = *++s;
rawmode = 1;