Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for class in module: for element in class.parse_tree:
- if is_attribute_access(element):
- if element.attribute_name.starstwith('__')
- if not element.attribute_name.endwith('__'):
- element.attribute_name = "_" + class.name + element.attribute_name
Add Comment
Please, Sign In to add comment