return 0;
}
- len = PyTuple_Size(args);
+ len = PyTuple_GET_SIZE(args);
if (len < min || max < len) {
if (message == NULL) {
for (i = 0; i < len; i++) {
if (*format == '|')
format++;
- msg = convertitem(PyTuple_GetItem(args, i), &format, p_va,
- levels, msgbuf);
+ msg = convertitem(PyTuple_GET_ITEM(args, i), &format, p_va,
+ levels, msgbuf);
if (msg) {
seterror(i+1, msg, levels, fname, message);
return 0;
else if (c == ':') {
fname = format;
break;
- }
- else if (c == ';') {
+ } else if (c == ';') {
message = format;
break;
- }
- else if (c == 'e')
+ } else if (c == 'e')
; /* Pass */
else if (isalpha(c))
max++;
return 0;
}
- tplen = PyTuple_Size(args);
+ tplen = PyTuple_GET_SIZE(args);
/* do a cursory check of the keywords just to see how many we got */
for (i = 0; i < tplen; i++) {
if (*format == '|')
format++;
- msg = convertitem(PyTuple_GetItem(args, i), &format, p_va,
+ msg = convertitem(PyTuple_GET_ITEM(args, i), &format, p_va,
levels, msgbuf);
if (msg) {
seterror(i+1, msg, levels, fname, message);