@@ -249,7 +249,8 @@ def convert(self, name, qname, attrs):
249249
250250 def document_element_start (self , name , qname , attrs ):
251251 if name [0 ] and URIRef ("" .join (name )) == RDF .RDF :
252- next = self .next
252+ # Cheap hack so 2to3 doesn't turn it into __next__
253+ next = getattr (self , 'next' )
253254 next .start = self .node_element_start
254255 next .end = self .node_element_end
255256 else :
@@ -263,7 +264,9 @@ def node_element_start(self, name, qname, attrs):
263264 name , atts = self .convert (name , qname , attrs )
264265 current = self .current
265266 absolutize = self .absolutize
266- next = self .next
267+
268+ # Cheap hack so 2to3 doesn't turn it into __next__
269+ next = getattr (self , 'next' )
267270 next .start = self .property_element_start
268271 next .end = self .property_element_end
269272
@@ -339,7 +342,9 @@ def property_element_start(self, name, qname, attrs):
339342 name , atts = self .convert (name , qname , attrs )
340343 current = self .current
341344 absolutize = self .absolutize
342- next = self .next
345+
346+ # Cheap hack so 2to3 doesn't turn it into __next__
347+ next = getattr (self , 'next' )
343348 object = None
344349 current .data = None
345350 current .list = None
0 commit comments