mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
tighten loop
This commit is contained in:
parent
503d6c5ae9
commit
d4519c14ca
1 changed files with 1 additions and 4 deletions
|
@ -1363,11 +1363,8 @@ print_error_text(PyObject *f, int offset, const char *text)
|
|||
if (offset == -1)
|
||||
return;
|
||||
PyFile_WriteString(" ", f);
|
||||
offset--;
|
||||
while (offset > 0) {
|
||||
while (--offset)
|
||||
PyFile_WriteString(" ", f);
|
||||
offset--;
|
||||
}
|
||||
PyFile_WriteString("^\n", f);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue