ok
Direktori : /lib64/python3.6/lib2to3/fixes/__pycache__/ |
Current File : //lib64/python3.6/lib2to3/fixes/__pycache__/fix_nonzero.cpython-36.opt-1.pyc |
3 \O � @ s2 d Z ddlmZ ddlmZ G dd� dej�ZdS )z*Fixer for __nonzero__ -> __bool__ methods.� )� fixer_base)�Namec @ s e Zd ZdZdZdd� ZdS )� FixNonzeroTz� classdef< 'class' any+ ':' suite< any* funcdef< 'def' name='__nonzero__' parameters< '(' NAME ')' > any+ > any* > > c C s$ |d }t d|jd�}|j|� d S )N�name�__bool__)�prefix)r r �replace)�selfZnode�resultsr �new� r �#/usr/lib64/python3.6/fix_nonzero.py� transform s zFixNonzero.transformN)�__name__� __module__�__qualname__Z BM_compatibleZPATTERNr r r r r r s r N)�__doc__� r Z fixer_utilr ZBaseFixr r r r r �<module> s