191 def __cc2Dict(obj): |
191 def __cc2Dict(obj): |
192 """ |
192 """ |
193 Private function to convert an object holding cyclomatic complexity results |
193 Private function to convert an object holding cyclomatic complexity results |
194 into a dictionary. |
194 into a dictionary. |
195 |
195 |
196 @param obj object as returned from analyze() |
196 @param obj object as returned from cc_visit() |
197 @type radon.raw.Module |
197 @type radon.visitors.Function |
198 @return conversion result |
198 @return conversion result |
199 @rtype dict |
199 @rtype dict |
200 """ |
200 """ |
201 from radon.complexity import cc_rank |
201 from radon.complexity import cc_rank |
202 from radon.visitors import Function |
202 from radon.visitors import Function |