From 503d6c5ae90c4427b236cff8b4f12051a8e72129 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 24 Oct 2010 02:52:05 +0000 Subject: remove broken code accounting an offset the size of the line #10186 --- Python/pythonrun.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'Python/pythonrun.c') 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) -- cgit v1.2.1