#ifdef PyUnicode_Check
} else if PyUnicode_Check (ret) {
#if PY_VERSION_HEX >= 0x03030000
- size_t size;
+ Py_ssize_t size;
const char *tmp;
/* tmp doesn't need to be deallocated */
#ifdef PyUnicode_Check
} else if PyUnicode_Check (ret) {
#if PY_VERSION_HEX >= 0x03030000
- size_t size;
+ Py_ssize_t size;
const char *tmp;
/* tmp doesn't need to be deallocated */
type = 2;
if (type != 0) {
/*
- * the xmllib interface always generate a dictionnary,
+ * the xmllib interface always generates a dictionary,
* possibly empty
*/
if ((attrs == NULL) && (type == 1)) {
xmlAttrPtr attr = (xmlAttrPtr) cur;
res = attr->last;
+ break;
}
default:
res = NULL;