mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Merged revisions 72848 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72848 | eric.smith | 2009-05-23 09:56:13 -0400 (Sat, 23 May 2009) | 1 line Issue 6089: str.format raises SystemError. ........
This commit is contained in:
parent
db1c399fe0
commit
41669caebc
3 changed files with 10 additions and 2 deletions
|
|
@ -375,8 +375,9 @@ FieldNameIterator_next(FieldNameIterator *self, int *is_attribute,
|
|||
*name_idx = get_integer(name);
|
||||
break;
|
||||
default:
|
||||
/* interal error, can't get here */
|
||||
assert(0);
|
||||
/* Invalid character follows ']' */
|
||||
PyErr_SetString(PyExc_ValueError, "Only '.' or '[' may "
|
||||
"follow ']' in format field specifier");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue