summaryrefslogtreecommitdiffstats
path: root/Python/ast.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-04-03 16:27:27 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-04-03 16:27:27 (GMT)
commit7afb766c5dcb1e3caef9ca4c09df055933eede1b (patch)
tree1dd8587ca7a608f13371047826530189c9e1f580 /Python/ast.c
parentf95ecf7b157f9aa20f33c50f5ca1b4c50de96daa (diff)
downloadcpython-7afb766c5dcb1e3caef9ca4c09df055933eede1b.zip
cpython-7afb766c5dcb1e3caef9ca4c09df055933eede1b.tar.gz
cpython-7afb766c5dcb1e3caef9ca4c09df055933eede1b.tar.bz2
#2541 Allow unicode escapes in raw strings
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 6a9658a..218436f 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -3231,7 +3231,7 @@ parsestr(struct compiling *c, const node *n, int *bytesmode)
return NULL;
}
}
- if (!*bytesmode && !rawmode) {
+ if (!*bytesmode) {
return decode_unicode(s, len, rawmode, c->c_encoding);
}
if (*bytesmode) {