Johannes Gijsbers | cb9015d | 2004-12-12 16:20:22 +0000 | [diff] [blame^] | 1 | # line 1 |
2 | def wrap(foo=None): | ||||
3 | def wrapper(func): | ||||
4 | return func | ||||
5 | return wrapper | ||||
6 | |||||
7 | # line 7 | ||||
8 | def replace(func): | ||||
9 | def insteadfunc(): | ||||
10 | print 'hello' | ||||
11 | return insteadfunc | ||||
12 | |||||
13 | # line 13 | ||||
14 | @wrap() | ||||
15 | @wrap(wrap) | ||||
16 | def wrapped(): | ||||
17 | pass | ||||
18 | |||||
19 | # line 19 | ||||
20 | @replace | ||||
21 | def gone(): | ||||
22 | pass |