2013-01-14 | Paul Boddie | file changeset files shortlog | Moved common logic into a separate method. |
paul@608 | 1 | #!/usr/bin/env python |
paul@608 | 2 | |
paul@608 | 3 | class C: |
paul@608 | 4 | def test(self): |
paul@608 | 5 | return 3 |
paul@608 | 6 | |
paul@608 | 7 | x = 2 |
paul@608 | 8 | y = 2 |
paul@608 | 9 | |
paul@608 | 10 | if y: |
paul@608 | 11 | c = C() # attributes: {test} or {} |
paul@608 | 12 | if x: |
paul@608 | 13 | y = c.test() # targets: {C.test} |
paul@608 | 14 | |
paul@608 | 15 | result_3 = y |
paul@608 | 16 | |
paul@608 | 17 | # vim: tabstop=4 expandtab shiftwidth=4 |