ok
Direktori : /lib64/python3.6/__pycache__/ |
Current File : //lib64/python3.6/__pycache__/tabnanny.cpython-36.opt-1.pyc |
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"