Kax` f d Z ddlmZ ddlZddlZddlZddlmZ ddlZddlm Z n# e $ r ddlmZm Z Y nw xY wdZ G d d e Z G d de Z G d d e Z G d de Z G d de ZddZddZd ZddZedk r eej dd dS dS )z Meager code path measurement tool. Ned Batchelder http://nedbatchelder.com/blog/200803/python_code_complexity_microtool.html MIT License. )with_statementN)defaultdict)iter_child_nodes)astr z0.7.0c * e Zd ZdZd Zd Zd Zd ZdS ) ASTVisitorz'Performs a depth-first walk of the AST.c " d | _ i | _ d S N)node_cacheselfs X/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/mccabe.py__init__zASTVisitor.__init__ s c F t | D ]} | j |g|R d S r )r dispatch)r r argschilds r defaultzASTVisitor.default s@ %d++ ( (EDM%'$''''' ( (r c || _ |j }| j | }|/|j }t | j d|z | j }|| j |<