We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b1e402 commit 44f6186Copy full SHA for 44f6186
core/utils.py
@@ -332,6 +332,7 @@ def split_into_tokens_gen(s):
332
for t1, t2 in zip(tokens, tokens[1:]):
333
start1, end1 = token_text_range(t1, linenos)
334
start2, end2 = token_text_range(t2, linenos)
335
+ end1 = min(end1, start2) # workaround a specific unicode bug in 3.12.1
336
assert start1 <= end1 <= start2 <= end2
337
yield s[start1:end1]
338
yield s[end1:start2]
0 commit comments