[xml] Python3 version of gnome-doc-utils


I'm trying to port gnome-doc-utils to Python 3 and found the following libxml 2 misuse.

Original code has the following function: 


The trickiest part are lines 

 next = node.next
 node.next = next

Which fails in Py3 as next is not a usual field, but a xmlCore property, which has getter, but no setters.
This worked (by chance?) in Py2, but not now.
Evident attempt to replace it with 

next = node.next

also fails, as it seems later calls to node.next  doesn't return our next field.
Does someone have any ideas how to fix this code?

Best regards, 
Alexander Pyhalov, 
system administrator of Southern Federal University IT department

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]