summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/src/Python/formatter_unicode.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tools/python3/src/Python/formatter_unicode.c')
-rw-r--r--contrib/tools/python3/src/Python/formatter_unicode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tools/python3/src/Python/formatter_unicode.c b/contrib/tools/python3/src/Python/formatter_unicode.c
index e7ec4dd5cb4..7b5a7bd04eb 100644
--- a/contrib/tools/python3/src/Python/formatter_unicode.c
+++ b/contrib/tools/python3/src/Python/formatter_unicode.c
@@ -219,7 +219,7 @@ parse_internal_render_format_spec(PyObject *format_spec,
/* The special case for 0-padding (backwards compat) */
if (!fill_char_specified && end-pos >= 1 && READ_spec(pos) == '0') {
format->fill_char = '0';
- if (!align_specified) {
+ if (!align_specified && default_align == '>') {
format->align = '=';
}
++pos;