#2541 Allow unicode escapes in raw strings

This commit is contained in:
Benjamin Peterson 2008-04-03 16:27:27 +00:00
parent f95ecf7b15
commit 7afb766c5d
2 changed files with 3 additions and 1 deletions

View file

@ -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) {