summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-10-24 03:00:35 +0000
committerBenjamin Peterson <benjamin@python.org>2010-10-24 03:00:35 +0000
commitf99f33da605ba1d589029880d922a132a362618b (patch)
treede02b4bae89ed3c8f3c56990a39299175a52abc7 /Python
parente395752bcc3f1dda1314c9d006b78ea32bfdb090 (diff)
downloadcpython-git-f99f33da605ba1d589029880d922a132a362618b.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')
-rw-r--r--Python/pythonrun.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 7f63ae108c..f3b4e5044e 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -1045,8 +1045,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)