remove broken code accounting an offset the size of the line #10186
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user