Guest User

Untitled

a guest
Jul 16th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. if node is not None:
  2. pos = 'inside'
  3. if node2.get('position'):
  4. pos = node2.get('position')
  5. if pos == 'replace':
  6. for child in node2:
  7. print "node.tag", node.tag
  8. node.addprevious(child)
  9. node.getparent().remove(node)
  10. else:
Add Comment
Please, Sign In to add comment