diff Python/pythonrun.c @ 65615:53639e57ba40 3.1

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 02:57:31 +0000
parents 902f577e7f94
children e8c8400caa99
line wrap: on
line diff
--- a/Python/pythonrun.c	Sat Oct 23 22:23:46 2010 +0000
+++ b/Python/pythonrun.c	Sun Oct 24 02:57:31 2010 +0000
@@ -1299,8 +1299,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)