Guest User

Untitled

a guest
Nov 24th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. for class in module: for element in class.parse_tree:
  2. if is_attribute_access(element):
  3. if element.attribute_name.starstwith('__')
  4. if not element.attribute_name.endwith('__'):
  5. element.attribute_name = "_" + class.name + element.attribute_name
Add Comment
Please, Sign In to add comment