Skip to content

Instantly share code, notes, and snippets.

@Schachte
Created July 15, 2015 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Schachte/865ebe8df97e5246dfc2 to your computer and use it in GitHub Desktop.
Save Schachte/865ebe8df97e5246dfc2 to your computer and use it in GitHub Desktop.
for child in root:
if child.attrib['major'] == str(hex(int(major_bits[::-1], 2))) and child.attrib['minor'] == str(hex(int(minor_bits[::-1], 2))):
command_name = str(child.attrib['name'])
print 'inside of this'
for grandchild in child.getchildren():
print str(grandchild.attrib['bytes'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment