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 |
6 |
|
7 # |
|
8 # Specialized variant for integration into the eric IDE. |
|
9 # |
|
10 # Changes: |
|
11 # - use 'import ...' instead of 'from ... import ...' |
|
12 # - removed 'McCabeChecker' because we have our own checker class |
|
13 # |
|
14 # Copyright (c) 2015 - 2022 Detlev Offenbach <detlev@die-offenbachs.de> |
|
15 # |
|
16 |
7 import collections |
17 import collections |
8 import ast |
18 import ast |
9 |
19 |
10 __version__ = '0.6.1_eric7' |
20 __version__ = '0.7.0_eric7' |
11 |
21 |
12 |
22 |
13 class ASTVisitor(object): |
23 class ASTVisitor(object): |
14 """Performs a depth-first walk of the AST.""" |
24 """Performs a depth-first walk of the AST.""" |
15 |
25 |