2010-02-09 | Paul Boddie | file changeset files shortlog | Fixed ordering of statements which abandon attribute usage. |
paul@97 | 1 | #!/usr/bin/env python |
paul@97 | 2 | |
paul@235 | 3 | class E(Exception): |
paul@97 | 4 | pass |
paul@97 | 5 | |
paul@97 | 6 | def f(x, y): |
paul@97 | 7 | try: |
paul@97 | 8 | g(x) |
paul@97 | 9 | except E, exc: |
paul@97 | 10 | return y |
paul@97 | 11 | return x |
paul@97 | 12 | |
paul@97 | 13 | def g(x): |
paul@97 | 14 | raise E, x |
paul@97 | 15 | |
paul@235 | 16 | result_2 = f(1, 2) |
paul@145 | 17 | |
paul@97 | 18 | # vim: tabstop=4 expandtab shiftwidth=4 |