From 3b107f99c7e9289fe0935ef7d9f9b30518045f66 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 11 Jul 2010 03:36:35 +0000 Subject: [PATCH] remove unneeded error check --- Objects/stringlib/formatter.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Objects/stringlib/formatter.h b/Objects/stringlib/formatter.h index 7b29a9de3a9..ba2a251c2f1 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 */