diff Python/pythonrun.c @ 65614:18989ad44636

remove broken code accounting an offset the size of the line #10186
author Benjamin Peterson <benjamin@python.org>
date Sun, 24 Oct 2010 02:52:05 +0000
parents e2ba1249a2f5
children f148f864b168
line wrap: on
line diff
--- a/Python/pythonrun.c	Sat Oct 23 22:19:56 2010 +0000
+++ b/Python/pythonrun.c	Sun Oct 24 02:52:05 2010 +0000
@@ -1344,8 +1344,6 @@
 {
     char *nl;
     if (offset >= 0) {
-        if (offset > 0 && offset == (int)strlen(text))
-            offset--;
         for (;;) {
             nl = strchr(text, '\n');
             if (nl == NULL || nl-text >= offset)