8000 gh-120317: Lock around global state in the tokenize module by lysnikolaou · Pull Request #120318 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-120317: Lock around global state in the tokenize module #120318

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jul 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix formatting
  • Loading branch information
lysnikolaou committed Jun 12, 2024
commit 601e5393bf1552e91faa17160900b870632e220a
3 changes: 2 additions & 1 deletion Python/Python-tokenize.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ _get_current_line(tokenizeriterobject *it, const char *line_start, Py_ssize_t si
line = PyUnicode_DecodeUTF8(line_start, size, "replace");
it->last_line = line;
it->byte_col_offset_diff = 0;
} else {
}
else {
line = it->last_line;
*line_changed = 0;
}
Expand Down
Loading
0