summaryrefslogtreecommitdiff
path: root/Python/formatter_unicode.c
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2014-04-15 13:52:21 +0100
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2014-04-15 13:52:21 +0100
commitf004a07cfcd9b73d8770804bd8600ffc79e0163d (patch)
tree317a79a5235a5ba90e544b476de012f833e35955 /Python/formatter_unicode.c
parentd9e7f70c649650838a5942b3cf2bc2c1ee16b7ff (diff)
downloadcpython-f004a07cfcd9b73d8770804bd8600ffc79e0163d.tar.gz
Reverted 16efa8d27e4c after discussion with Eric.
Diffstat (limited to 'Python/formatter_unicode.c')
-rw-r--r--Python/formatter_unicode.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c
index 056bb76902..e3a8149841 100644
--- a/Python/formatter_unicode.c
+++ b/Python/formatter_unicode.c
@@ -846,13 +846,6 @@ format_long_internal(PyObject *value, const InternalFormatSpec *format,
" format specifier 'c'");
goto done;
}
- /* error to request alternate format */
- if (format->alternate) {
- PyErr_SetString(PyExc_ValueError,
- "Alternate form (#) not allowed with integer"
- " format specifier 'c'");
- goto done;
- }
/* taken from unicodeobject.c formatchar() */
/* Integer input truncated to a character */