@@ -341,9 +341,9 @@ template_concat_templates(templateobject *self, templateobject *other)
341
341
}
342
342
343
343
static PyObject *
344
- template_concat_template_str (templateobject * self , PyObject * str )
344
+ template_concat_template_str (templateobject * self , PyObject * other )
345
345
{
346
- PyObject * newstrings = template_strings_append_str (self -> strings , str );
346
+ PyObject * newstrings = template_strings_append_str (self -> strings , other );
347
347
if (newstrings == NULL ) {
348
348
return NULL ;
349
349
}
@@ -358,9 +358,9 @@ template_concat_template_str(templateobject *self, PyObject *str)
358
358
}
359
359
360
360
static PyObject *
361
- template_concat_str_template (templateobject * self , PyObject * str )
361
+ template_concat_str_template (templateobject * self , PyObject * other )
362
362
{
363
- PyObject * newstrings = template_strings_prepend_str (self -> strings , str );
363
+ PyObject * newstrings = template_strings_prepend_str (self -> strings , other );
364
364
if (newstrings == NULL ) {
365
365
return NULL ;
366
366
}
@@ -374,8 +374,8 @@ template_concat_str_template(templateobject *self, PyObject *str)
374
374
return template_from_strings_interpolations (Py_TYPE (self ), newstrings , newinterpolations );
375
375
}
376
376
377
- static PyObject *
378
- template_concat (PyObject * self , PyObject * other )
377
+ PyObject *
378
+ _PyTemplate_Concat (PyObject * self , PyObject * other )
379
379
{
380
380
if (PyObject_TypeCheck (self , & _PyTemplate_Type ) &&
381
381
PyObject_TypeCheck (other , & _PyTemplate_Type )) {
@@ -433,7 +433,7 @@ static PyGetSetDef template_getset[] = {
433
433
};
434
434
435
435
static PySequenceMethods template_as_sequence = {
436
- .sq_concat = template_concat ,
436
+ .sq_concat = _PyTemplate_Concat ,
437
437
};
438
438
439
439
PyTypeObject _PyTemplate_Type = {
0 commit comments