diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-10-24 02:57:31 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-10-24 02:57:31 +0000 |
commit | ada0c2e8c5b661dd8d1126d3b88991c714a4572a (patch) | |
tree | 17fc763ea219e2a2273c25ef9e71e16289dc1af1 /Python/pythonrun.c | |
parent | 46c346598396368aac24febc510b6c2050b6a313 (diff) | |
download | cpython-ada0c2e8c5b661dd8d1126d3b88991c714a4572a.tar.gz |
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
........
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 98cad37799..10a1d504a0 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1299,8 +1299,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) |