Skip to content

Commit 38255f6

Browse files
committed
fix: error message on %i format
1 parent 6c6600f commit 38255f6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Objects/bytesobject.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,6 @@ static PyObject *
468468
formatlong(PyObject *v, int flags, int prec, int type)
469469
{
470470
PyObject *result, *iobj;
471-
if (type == 'i')
472-
type = 'd';
473471
if (PyLong_Check(v))
474472
return _PyUnicode_FormatLong(v, flags & F_ALT, prec, type);
475473
if (PyNumber_Check(v)) {

0 commit comments

Comments
 (0)