summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-10-24 02:52:05 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-10-24 02:52:05 (GMT)
commit503d6c5ae90c4427b236cff8b4f12051a8e72129 (patch)
tree3d753193202cf4dbe5bb4daa36c7072629186250 /Python/pythonrun.c
parent8451c4b6e044f83efc2298a79af58c3e56d946a2 (diff)
downloadcpython-503d6c5ae90c4427b236cff8b4f12051a8e72129.zip
cpython-503d6c5ae90c4427b236cff8b4f12051a8e72129.tar.gz
cpython-503d6c5ae90c4427b236cff8b4f12051a8e72129.tar.bz2
remove broken code accounting an offset the size of the line #10186
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index f755d11..cf8f7bf 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -1344,8 +1344,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)
3608714 Tcl is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful.
summaryrefslogtreecommitdiffstats
path: root/generic
ModeNameSize
-rw-r--r--README199logstatsplain
-rw-r--r--regc_color.c18764logstatsplain
-rw-r--r--regc_cvec.c3975logstatsplain
-rw-r--r--regc_lex.c25996logstatsplain
-rw-r--r--regc_locale.c52299logstatsplain
-rw-r--r--regc_nfa.c46916logstatsplain
-rw-r--r--regcomp.c54416logstatsplain
-rw-r--r--regcustom.h4996logstatsplain
-rw-r--r--rege_dfa.c19404logstatsplain
-rw-r--r--regerror.c3710logstatsplain
-rw-r--r--regerrs.h1188logstatsplain
-rw-r--r--regex.h11308logstatsplain
-rw-r--r--regexec.c31723logstatsplain
-rw-r--r--regfree.c2177logstatsplain
-rw-r--r--regfronts.c2499logstatsplain
-rw-r--r--regguts.h12774logstatsplain
-rw-r--r--tcl.decls65091logstatsplain
-rw-r--r--tcl.h93791logstatsplain
-rw-r--r--tclAlloc.c17829