Skip to content

Commit 35ba4e4

Browse files
committed
pythongh-104018: remove unused format "z" handling in string objects
This is a cleanup missed in PR python#104033. Please skip NEWS.
1 parent 1f53844 commit 35ba4e4

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

Objects/bytesobject.c

-3
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,6 @@ formatfloat(PyObject *v, int flags, int prec, int type,
423423
if (flags & F_ALT) {
424424
dtoa_flags |= Py_DTSF_ALT;
425425
}
426-
if (flags & F_NO_NEG_0) {
427-
dtoa_flags |= Py_DTSF_NO_NEG_0;
428-
}
429426
p = PyOS_double_to_string(x, type, prec, dtoa_flags, NULL);
430427

431428
if (p == NULL)

Objects/unicodeobject.c

-2
Original file line numberDiff line numberDiff line change
@@ -13452,8 +13452,6 @@ formatfloat(PyObject *v, struct unicode_format_arg_t *arg,
1345213452

1345313453
if (arg->flags & F_ALT)
1345413454
dtoa_flags |= Py_DTSF_ALT;
13455-
if (arg->flags & F_NO_NEG_0)
13456-
dtoa_flags |= Py_DTSF_NO_NEG_0;
1345713455
p = PyOS_double_to_string(x, arg->ch, prec, dtoa_flags, NULL);
1345813456
if (p == NULL)
1345913457
return -1;

0 commit comments

Comments
 (0)