HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/libpasteurize/fixes/__pycache__/fix_newstyle.cpython-38.pyc
U

,�]x�@sNdZddlmZddlmZmZmZddlmZdd�Z	Gdd�dej
�Zd	S)
z8
Fixer for "class Foo: ..." -> "class Foo(object): ..."
�)�
fixer_base)�LParen�RParen�Name)�touch_import_topcCs0|�|t��|�|td��|�|t��dS)N�object)Zinsert_childrrr)�node�idx�r
�B/usr/lib/python3/dist-packages/libpasteurize/fixes/fix_newstyle.py�
insert_objectsrc@seZdZdZdd�ZdS)�FixNewstylez0classdef< 'class' NAME ['(' ')'] colon=':' any >cCsn|d}|j�|�}|j|djdkrT|j|djdkrT|j|d|�=|d8}t||�tdd|�dS)N�colon��(��)�builtinsr)Zchildren�index�valuerr)�selfrZresultsrr	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