Created
March 22, 2012 10:34
-
-
Save AeroNotix/2157619 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 filter_by(filters): | |
| def wrapper(function): | |
| def inner_wrap(wrapped_args): | |
| if wrapped_args not in filters: | |
| return | |
| return function(wrapped_args) | |
| return inner_wrap | |
| return wrapper | |
| @filter_by(manager_list) | |
| def recurse_search2(item): | |
| for line in block: | |
| if item[-1] != '': | |
| if item[-2] == line[0]: | |
| item.extend(line[2:]) | |
| else: | |
| return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment