summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2009-04-22 16:20:47 (GMT)
committerEric Smith <eric@trueblade.com>2009-04-22 16:20:47 (GMT)
commitebafbb705cbc92e7917e2dea423c141ec2b276b4 (patch)
tree8c9458e987733171a1ca9cfb485809687fbd64c6 /Objects
parent5533ff6a2ea1560cf6700c07096f34c5b9bf5874 (diff)
downloadcpython-ebafbb705cbc92e7917e2dea423c141ec2b276b4.zip
cpython-ebafbb705cbc92e7917e2dea423c141ec2b276b4.tar.gz
cpython-ebafbb705cbc92e7917e2dea423c141ec2b276b4.tar.bz2
Fixed issue 5782: formatting with commas didn't work if no specifier type code was given.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/stringlib/formatter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/stringlib/formatter.h b/Objects/stringlib/formatter.h
index 61ca12b..9cbd2cc 100644
--- a/Objects/stringlib/formatter.h
+++ b/Objects/stringlib/formatter.h
@@ -248,6 +248,7 @@ parse_internal_render_format_spec(STRINGLIB_CHAR *format_spec,
case 'G':
case '%':
case 'F':
+ case '\0':
/* These are allowed. See PEP 378.*/
break;
default: