HOME


sh-3ll 1.0
DIR:/usr/local/lib/python3.6/site-packages/libpasteurize/fixes/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.6/site-packages/libpasteurize/fixes/__pycache__/fix_newstyle.cpython-36.pyc
3

+��hx�@sNdZddlmZddlmZmZmZddlmZdd�Z	Gdd�dej
�Zd	S)
z8
Fixer for "class Foo: ..." -> "class Foo(object): ..."
�)�
fixer_base)�LParen�RParen�Name)�touch_import_topcCs0|j|t��|j|td��|j|t��dS)N�object)Zinsert_childrrr)�node�idx�r
�G/root/tmp/pip-build-yeh9mt8d/future/libpasteurize/fixes/fix_newstyle.py�
insert_objectsrc@seZdZdZdd�ZdS)�FixNewstylez0classdef< 'class' NAME ['(' ')'] colon=':' any >cCsn|d}|jj|�}|j|djdkrT|j|djdkrT|j|d|�=|d8}t||�tdd|�dS)N�colon��(��)�builtinsr)�children�index�valuerr)�selfr�resultsrr	r
r
r�	transforms
zFixNewstyle.transformN)�__name__�
__module__�__qualname__ZPATTERNrr
r
r
rr
sr
N)�__doc__Zlib2to3rZlib2to3.fixer_utilrrrZlibfuturize.fixer_utilrrZBaseFixr
r
r
r
r�<module>s