Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7)

Unified Diff: Objects/stringlib/string_format.h

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Objects/genobject.c ('k') | Objects/typeobject.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Objects/stringlib/string_format.h Tue Jul 26 09:37:46 2011 +0300
+++ b/Objects/stringlib/string_format.h Mon Jul 25 09:47:18 2011 -0400
@@ -511,16 +511,6 @@
Py_DECREF(key);
}
else {
- /* If args is NULL, we have a format string with a positional field
- with only kwargs to retrieve it from. This can only happen when
- used with format_map(), where positional arguments are not
- allowed. */
- if (args == NULL) {
- PyErr_SetString(PyExc_ValueError, "Format string contains "
- "positional fields");
- goto error;
- }
-
/* look up in args */
obj = PySequence_GetItem(args, index);
if (obj == NULL)
« no previous file with comments | « Objects/genobject.c ('k') | Objects/typeobject.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+