summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-05-07 05:06:06 (GMT)
committerGitHub <noreply@github.com>2023-05-07 05:06:06 (GMT)
commit15ffcf76e1b6bdd14aff0875beb2a8f2afdaf374 (patch)
tree779953e1aaf30452d28ebfc4bd751fe0576909b3 /Python
parentefcd4bcb87a8a461ccf8f6038f75e638d86eeb8c (diff)
downloadcpython-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 'Python')
-rw-r--r--Python/ast_opt.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Python/ast_opt.c b/Python/ast_opt.c
index b1d807b..77ed29d 100644
--- a/Python/ast_opt.c
+++ b/Python/ast_opt.c
@@ -310,7 +310,6 @@ simple_format_arg_parse(PyObject *fmt, Py_ssize_t *ppos,
case ' ': *flags |= F_BLANK; continue;
case '#': *flags |= F_ALT; continue;
case '0': *flags |= F_ZERO; continue;
- case 'z': *flags |= F_NO_NEG_0; continue;
}
break;
}