Show More
@@ -98,8 +98,8 b' def tokenize(program, start, end, term=N' | |||||
98 | pos += 1 |
|
98 | pos += 1 | |
99 | yield ('integer', program[s:pos], s) |
|
99 | yield ('integer', program[s:pos], s) | |
100 | pos -= 1 |
|
100 | pos -= 1 | |
101 | elif (c == '\\' and program[pos:pos + 2] in (r"\'", r'\"') |
|
101 | elif (c == '\\' and program[pos:pos + 2] in (br"\'", br'\"') | |
102 | or c == 'r' and program[pos:pos + 3] in (r"r\'", r'r\"')): |
|
102 | or c == 'r' and program[pos:pos + 3] in (br"r\'", br'r\"')): | |
103 | # handle escaped quoted strings for compatibility with 2.9.2-3.4, |
|
103 | # handle escaped quoted strings for compatibility with 2.9.2-3.4, | |
104 | # where some of nested templates were preprocessed as strings and |
|
104 | # where some of nested templates were preprocessed as strings and | |
105 | # then compiled. therefore, \"...\" was allowed. (issue4733) |
|
105 | # then compiled. therefore, \"...\" was allowed. (issue4733) |
General Comments 0
You need to be logged in to leave comments.
Login now