diff options
Diffstat (limited to 'Python/formatter_unicode.c')
-rw-r--r-- | Python/formatter_unicode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c index 0378800..fda79fc 100644 --- a/Python/formatter_unicode.c +++ b/Python/formatter_unicode.c @@ -693,7 +693,7 @@ format_string_internal(PyObject *value, const InternalFormatSpec *format) Py_ssize_t rpad; Py_ssize_t total; Py_ssize_t pos; - Py_ssize_t len = PyUnicode_GET_SIZE(value); + Py_ssize_t len = PyUnicode_GET_LENGTH(value); PyObject *result = NULL; int maxchar = 127; |