관리-도구
편집 파일: fix_newstyle.cpython-37.opt-1.pyc
B �A�[x � @ sN d Z ddlmZ ddlmZmZmZ ddlmZ dd� Z G dd� dej �Zd S ) z8 Fixer for "class Foo: ..." -> "class Foo(object): ..." � )� fixer_base)�LParen�RParen�Name)�touch_import_topc C s0 | � |t� � | � |td�� | � |t� � d S )N�object)Zinsert_childr r r )�node�idx� r �Q/opt/alt/python37/lib/python3.7/site-packages/libpasteurize/fixes/fix_newstyle.py� insert_object s r c @ s e Zd ZdZdd� ZdS )�FixNewstylez0classdef< 'class' NAME ['(' ')'] colon=':' any >c C sn |d }|j �|�}|j |d jdkrT|j |d jdkrT|j |d |�= |d8 }t||� tdd|� d S )N�colon� �(� �)�builtinsr )Zchildren�index�valuer r )�selfr Zresultsr r r r r � transform s zFixNewstyle.transformN)�__name__� __module__�__qualname__ZPATTERNr r r r r r s r N)�__doc__Zlib2to3r Zlib2to3.fixer_utilr r r Zlibfuturize.fixer_utilr r ZBaseFixr r r r r �<module> s