2010-09-13 | Paul Boddie | file changeset files shortlog | Fixed try...except branching. Removed the propagation of null/empty usage to the importer. Introduced a degree of caching when gathering usage information from branches, in order to avoid repeated work. Introduced filtering of usage information on users in order to avoid guard information being generated for names other than those a user defines. |
paul@384 | 1 | #!/usr/bin/env python |
paul@384 | 2 | |
paul@384 | 3 | class C: |
paul@384 | 4 | def f(self): |
paul@384 | 5 | return 1 |
paul@384 | 6 | |
paul@384 | 7 | class D: |
paul@384 | 8 | def g(self): |
paul@384 | 9 | return 2 |
paul@384 | 10 | |
paul@384 | 11 | c = C() |
paul@384 | 12 | for j in xrange(0, 10): |
paul@384 | 13 | k = c.f() |
paul@384 | 14 | |
paul@384 | 15 | result_1 = k |
paul@384 | 16 | |
paul@384 | 17 | # vim: tabstop=4 expandtab shiftwidth=4 |