Commit 3b107f99 authored by Benjamin Peterson's avatar Benjamin Peterson

remove unneeded error check

parent 2ef16328
...@@ -776,14 +776,6 @@ format_int_or_long_internal(PyObject *value, const InternalFormatSpec *format, ...@@ -776,14 +776,6 @@ format_int_or_long_internal(PyObject *value, const InternalFormatSpec *format,
goto done; goto done;
} }
/* Error to specify a comma. */
if (format->thousands_separators) {
PyErr_SetString(PyExc_ValueError,
"Thousands separators not allowed with integer"
" format specifier 'c'");
goto done;
}
/* taken from unicodeobject.c formatchar() */ /* taken from unicodeobject.c formatchar() */
/* Integer input truncated to a character */ /* Integer input truncated to a character */
/* XXX: won't work for int */ /* XXX: won't work for int */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment