summaryrefslogtreecommitdiffstats
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
authorJohn Belmonte <john@neggie.net>2023-05-07 04:41:42 (GMT)
committerGitHub <noreply@github.com>2023-05-07 04:41:42 (GMT)
commit69621d1b09c996e43a1e13d2fa4c317d3dd4d738 (patch)
treec4b74959642b2b1825850569fbd5f8201287b775 /Objects/bytesobject.c
parentc53547c907371be53c8016145d73ba4ea0a22756 (diff)
downloadcpython-69621d1b09c996e43a1e13d2fa4c317d3dd4d738.zip
cpython-69621d1b09c996e43a1e13d2fa4c317d3dd4d738.tar.gz
cpython-69621d1b09c996e43a1e13d2fa4c317d3dd4d738.tar.bz2
gh-104018: remove unused format "z" handling in string formatfloat() (#104107)
This is a cleanup overlooked in PR #104033.
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r--Objects/bytesobject.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index e7e85cc..abbf3ee 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -423,9 +423,6 @@ formatfloat(PyObject *v, int flags, int prec, int type,
if (flags & F_ALT) {
dtoa_flags |= Py_DTSF_ALT;
}
- if (flags & F_NO_NEG_0) {
- dtoa_flags |= Py_DTSF_NO_NEG_0;
- }
p = PyOS_double_to_string(x, type, prec, dtoa_flags, NULL);
if (p == NULL)