diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-10-24 03:41:46 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-10-24 03:41:46 +0000 |
commit | 09e4cb55cdc2cc460b0c3cac7620bdf3bb3d103b (patch) | |
tree | 26c95a184ba1f99821d89d07ce64947caed931f8 /Python/pythonrun.c | |
parent | f26d99263a6433201f1f5b751a3f113f67359961 (diff) | |
download | cpython-09e4cb55cdc2cc460b0c3cac7620bdf3bb3d103b.tar.gz |
tighten loop
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index cf8f7bf2a7..1b0a84bd65 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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); } |