7638:176145438b1e | 7639:422fd05e9c91 |
---|---|
1 """ Meager code path measurement tool. | 1 """ Meager code path measurement tool. |
2 Ned Batchelder | 2 Ned Batchelder |
3 http://nedbatchelder.com/blog/200803/python_code_complexity_microtool.html | 3 http://nedbatchelder.com/blog/200803/python_code_complexity_microtool.html |
4 MIT License. | 4 MIT License. |
5 """ | 5 """ |
6 from __future__ import with_statement | |
7 | 6 |
8 import collections | 7 import collections |
9 import ast | 8 import ast |
10 | 9 |
11 __version__ = '0.6.1_eric6' | 10 __version__ = '0.6.1_eric6' |
213 name = "With %d" % node.lineno | 212 name = "With %d" % node.lineno |
214 self.appendPathNode(name) | 213 self.appendPathNode(name) |
215 self.dispatch_list(node.body) | 214 self.dispatch_list(node.body) |
216 | 215 |
217 visitAsyncWith = visitWith | 216 visitAsyncWith = visitWith |
218 | |
219 # | |
220 # eflag: noqa = M702 |