summaryrefslogtreecommitdiff
path: root/Objects/stringlib/formatter.h
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2009-04-22 16:20:47 +0000
committerEric Smith <eric@trueblade.com>2009-04-22 16:20:47 +0000
commitc4f5aca64e7837aceb2d0ac5a210ab1d62e8ba13 (patch)
treed56152909d2e0aac003011ce8df4f77c62bb5820 /Objects/stringlib/formatter.h
parent65475e7a6417d70d934978f1f9e70871bf6d2f3a (diff)
downloadcpython-c4f5aca64e7837aceb2d0ac5a210ab1d62e8ba13.tar.gz
Fixed issue 5782: formatting with commas didn't work if no specifier type code was given.
Diffstat (limited to 'Objects/stringlib/formatter.h')
-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 61ca12badf..9cbd2cc931 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: