Spaces:
Runtime error
Runtime error
refactor
Browse files
py_code_analyzer/code_imports_analyzer.py
CHANGED
@@ -2,7 +2,6 @@
|
|
2 |
to get what modules are imported in given python files, then uses networkx to generate imports graph
|
3 |
"""
|
4 |
import ast
|
5 |
-
from pprint import pprint
|
6 |
|
7 |
import networkx as nx
|
8 |
import requests
|
@@ -84,4 +83,6 @@ class CodeImportsAnalyzer:
|
|
84 |
return self.imports_graph
|
85 |
|
86 |
def report(self):
|
|
|
|
|
87 |
pprint(self.python_imports)
|
|
|
2 |
to get what modules are imported in given python files, then uses networkx to generate imports graph
|
3 |
"""
|
4 |
import ast
|
|
|
5 |
|
6 |
import networkx as nx
|
7 |
import requests
|
|
|
83 |
return self.imports_graph
|
84 |
|
85 |
def report(self):
|
86 |
+
from pprint import pprint
|
87 |
+
|
88 |
pprint(self.python_imports)
|