diff Python/pythonrun.c @ 65616:a4a27240fe09 2.7

Merged revisions 85814 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85814 | benjamin.peterson | 2010-10-23 21:52:05 -0500 (Sat, 23 Oct 2010) | 1 line remove broken code accounting an offset the size of the line #10186 ........
author Benjamin Peterson <benjamin@python.org>
date Sun, 24 Oct 2010 03:00:35 +0000
parents 55397533da51
children 64cee8d11f2e
line wrap: on
line diff
--- a/Python/pythonrun.c	Sat Oct 23 22:23:33 2010 +0000
+++ b/Python/pythonrun.c	Sun Oct 24 03:00:35 2010 +0000
@@ -1045,8 +1045,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)