From: Benjamin Peterson Date: Sun, 11 Jul 2010 03:36:35 +0000 (+0000) Subject: remove unneeded error check X-Git-Tag: v3.2a1~235 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b107f99c7e9289fe0935ef7d9f9b30518045f66;p=thirdparty%2FPython%2Fcpython.git remove unneeded error check --- diff --git a/Objects/stringlib/formatter.h b/Objects/stringlib/formatter.h index 7b29a9de3a92..ba2a251c2f15 100644 --- a/Objects/stringlib/formatter.h +++ b/Objects/stringlib/formatter.h @@ -776,14 +776,6 @@ format_int_or_long_internal(PyObject *value, const InternalFormatSpec *format, 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() */ /* Integer input truncated to a character */ /* XXX: won't work for int */