3 \“, ã @ s¤ d Z dZddlZddlZddlZddlZeedƒs:edƒ‚dddgZda da d d „ Zdd„ ZG d d„ de ƒZdd„ ZG dd„ dƒZdd„ Zdd„ Zedkr eƒ dS )a– The Tab Nanny despises ambiguous indentation. She knows no mercy. tabnanny -- Detection of ambiguous indentation For the time being this module is intended to be called as a script. However it is possible to import it into an IDE and use the function check() described below. Warning: The API provided by this module is likely to change in future releases; such changes may not be backward compatible. Ú6é NÚNLz4tokenize.NL doesn't exist -- tokenize module too oldÚcheckÚNannyNagÚprocess_tokensc G s: d}x$| D ]}t jj|t|ƒ ƒ d}q W t jjdƒ d S )NÚ ú Ú )ÚsysÚstderrÚwriteÚstr)ÚargsÚsepÚarg© r ú /usr/lib64/python3.6/tabnanny.pyÚerrprint# s r c C s° yt j tjdd … dƒ\} }W n* t jk rH } zt|ƒ d S d }~X nX x0| D ](\}}|dkrhtd a|dkrPtd aqPW |s–tdtjd dƒ d S x|D ]}t|ƒ qœW d S )Né Zqvz-qz-vzUsage:r z[-v] file_or_directory ...)Úgetoptr ÚargvÚerrorr Ú filename_onlyÚverboser )Zoptsr ÚmsgÚoÚar r r r Úmain* s r c @ s0 e Zd ZdZdd„ Zdd„ Zdd„ Zdd „ Zd S )r zk Raised by process_tokens() if detecting an ambiguous indent. Captured and handled in check(). c C s ||| | _ | _| _d S )N)Úlinenor Úline)Úselfr r r r r r Ú__init__A s zNannyNag.__init__c C s | j S )N)r )r r r r Ú get_linenoC s zNannyNag.get_linenoc C s | j S )N)r )r r r r Úget_msgE s zNannyNag.get_msgc C s | j S )N)r )r r r r Úget_lineG s zNannyNag.get_lineN)Ú__name__Ú __module__Ú__qualname__Ú__doc__r! r" r# r$ r r r r r <