Created
March 19, 2011 23:24
-
-
Save EntityReborn/877901 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def deps(self, id): | |
def getMoreDeps(id, prevdeps=None): | |
deps = self.get(id)[0].depends | |
if prevdeps is None: | |
prevdeps = list() | |
for dep in deps: | |
prevdeps.extend(getMoreDeps(dep, prevdeps)) | |
return prevdeps | |
return getMoreDeps(id) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment