diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-10-24 02:52:05 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-10-24 02:52:05 +0000 |
commit | f26d99263a6433201f1f5b751a3f113f67359961 (patch) | |
tree | 69a794d7d22b2bfe095ce0ce2079a7fb0af0d23a /Python/pythonrun.c | |
parent | b822bac16a861e2273c03c2c1e5f96b9fa69d666 (diff) | |
download | cpython-f26d99263a6433201f1f5b751a3f113f67359961.tar.gz |
remove broken code accounting an offset the size of the line #10186
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index f755d117ff..cf8f7bf2a7 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1344,8 +1344,6 @@ print_error_text(PyObject *f, int offset, const char *text) { char *nl; if (offset >= 0) { - if (offset > 0 && offset == (int)strlen(text)) - offset--; for (;;) { nl = strchr(text, '\n'); if (nl == NULL || nl-text >= offset) |