diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-05-07 05:06:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-07 05:06:06 (GMT) |
commit | 15ffcf76e1b6bdd14aff0875beb2a8f2afdaf374 (patch) | |
tree | 779953e1aaf30452d28ebfc4bd751fe0576909b3 /Objects/unicodeobject.c | |
parent | efcd4bcb87a8a461ccf8f6038f75e638d86eeb8c (diff) | |
download | cpython-15ffcf76e1b6bdd14aff0875beb2a8f2afdaf374.zip cpython-15ffcf76e1b6bdd14aff0875beb2a8f2afdaf374.tar.gz cpython-15ffcf76e1b6bdd14aff0875beb2a8f2afdaf374.tar.bz2 |
[3.11] gh-104018: remove unused format "z" handling in string formatfloat() (GH-104107) (#104260)
gh-104018: remove unused format "z" handling in string formatfloat() (GH-104107)
This is a cleanup overlooked in PR GH-104033.
(cherry picked from commit 69621d1b09c996e43a1e13d2fa4c317d3dd4d738)
Co-authored-by: John Belmonte <john@neggie.net>
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 84d17f0..4bdc8931 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -14385,8 +14385,6 @@ formatfloat(PyObject *v, struct unicode_format_arg_t *arg, if (arg->flags & F_ALT) dtoa_flags |= Py_DTSF_ALT; - if (arg->flags & F_NO_NEG_0) - dtoa_flags |= Py_DTSF_NO_NEG_0; p = PyOS_double_to_string(x, arg->ch, prec, dtoa_flags, NULL); if (p == NULL) return -1; |