Skip to content

Instantly share code, notes, and snippets.

@gaxiiiiiiiiiiii
Created November 1, 2018 11:56
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 gaxiiiiiiiiiiii/e04853e1c18e508c3f5b4cf33fe7656d to your computer and use it in GitHub Desktop.
Save gaxiiiiiiiiiiii/e04853e1c18e508c3f5b4cf33fe7656d to your computer and use it in GitHub Desktop.
def get_pass(self, data):
target = self.search(data)
markle_pass = []
if not(target):
return
markle_pass.append(target.hash)
while target.parent:
sibling = target.sibling
markle_pass.append((sibling.hash, sibling.position))
target = target.parent
return markle_pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment