(item)
| 73 | attribute = [attribute] |
| 74 | |
| 75 | def attrgetter(item): |
| 76 | for part in attribute: |
| 77 | item = environment.getitem(item, part) |
| 78 | |
| 79 | if postprocess is not None: |
| 80 | item = postprocess(item) |
| 81 | |
| 82 | return item |
| 83 | |
| 84 | return attrgetter |
| 85 |
no test coverage detected