@@ -14674,7 +14674,7 @@ unicode_vectorcall(PyObject *type, PyObject *const *args,
14674
14674
Py_ssize_t nargs = PyVectorcall_NARGS (nargsf );
14675
14675
Py_ssize_t nkwargs = (kwnames ) ? PyTuple_GET_SIZE (kwnames ) : 0 ;
14676
14676
if (nargs == 0 && nkwargs == 0 ) {
14677
- return unicode_get_empty ( );
14677
+ return unicode_new_impl ( _PyType_CAST ( type ), NULL , NULL , NULL );
14678
14678
}
14679
14679
PyObject * object = args [0 ];
14680
14680
if (nargs == 1 && nkwargs == 0 ) {
@@ -14712,7 +14712,6 @@ unicode_vectorcall(PyObject *type, PyObject *const *args,
14712
14712
else {
14713
14713
return fallback_to_tp_call (type , nargs , nkwargs , args , kwnames );
14714
14714
}
14715
- PyObject * object = args [0 ];
14716
14715
return unicode_new_impl (_PyType_CAST (type ), object , encoding , errors );
14717
14716
}
14718
14717
if (nargs + nkwargs == 3 ) {
@@ -14727,7 +14726,6 @@ unicode_vectorcall(PyObject *type, PyObject *const *args,
14727
14726
else if (nkwargs != 0 ) {
14728
14727
return fallback_to_tp_call (type , nargs , nkwargs , args , kwnames );
14729
14728
}
14730
- PyObject * object = args [0 ];
14731
14729
const char * encoding = as_const_char (args [1 ], "encoding" );
14732
14730
if (encoding == NULL ) {
14733
14731
return NULL ;
0 commit comments