Skip to content

Commit c6ca45a

Browse files
committed
Fix bug in suggested change
1 parent ffae8e9 commit c6ca45a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Objects/templateobject.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ templateiter_next(PyObject *op)
3030
Py_SETREF(item, PyIter_Next(self->interpolationsiter));
3131
self->from_strings = 1;
3232
}
33-
} else {
33+
}
34+
else {
3435
item = PyIter_Next(self->interpolationsiter);
3536
self->from_strings = 1;
3637
}
@@ -305,7 +306,7 @@ _PyTemplate_Concat(PyObject *self, PyObject *other)
305306

306307
PyErr_Format(PyExc_TypeError,
307308
"can only concatenate Template (not \"%T\") to Template",
308-
tp_name);
309+
other);
309310
return NULL;
310311
}
311312

0 commit comments

Comments
 (0)