summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2014-04-15 12:52:21 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2014-04-15 12:52:21 (GMT)
commit809f90f36905e7623eb98bf216c078a90a4090bd (patch)
tree8f486b04fde3ff3ae1f784bf0c01a6434a55eeb3 /Python
parent1e53f8d9bff9d9a7f6ea27aa0aea9eaca5307cc6 (diff)
downloadcpython-809f90f36905e7623eb98bf216c078a90a4090bd.zip
cpython-809f90f36905e7623eb98bf216c078a90a4090bd.tar.gz
cpython-809f90f36905e7623eb98bf216c078a90a4090bd.tar.bz2
Reverted 16efa8d27e4c after discussion with Eric.
Diffstat (limited to 'Python')
-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 056bb76..e3a8149 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 */