(func)
| 118 | in requirements.iteritems()} |
| 119 | |
| 120 | def wrapper(func): |
| 121 | def wrapped(*args, **kwargs): |
| 122 | # Update the keyword arguments with the required instances |
| 123 | kwargs.update({name : export.instance |
| 124 | for name, export |
| 125 | in exports.iteritems() |
| 126 | if name not in kwargs}) |
| 127 | |
| 128 | return func(*args, |
| 129 | **kwargs) |
| 130 | |
| 131 | wrapped.__name__ = func.__name__ |
| 132 | |
| 133 | return wrapped |
| 134 | return wrapper |
| 135 | |
| 136 |