summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-10-24 03:41:46 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-10-24 03:41:46 (GMT)
commitd4519c14ca5f08247207616ccab4b652abf584c1 (patch)
tree5ca3e8b5942fc78a241c8b19f7243bf9c31fea98 /Python
parent503d6c5ae90c4427b236cff8b4f12051a8e72129 (diff)
downloadcpython-d4519c14ca5f08247207616ccab4b652abf584c1.zip
cpython-d4519c14ca5f08247207616ccab4b652abf584c1.tar.gz
cpython-d4519c14ca5f08247207616ccab4b652abf584c1.tar.bz2
tighten loop
Diffstat (limited to 'Python')
-rw-r--r--Python/pythonrun.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index cf8f7bf..1b0a84b 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);
}