HEX
Server: LiteSpeed
System: Linux ws4.angoweb.net 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: tswangoe (2287)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
Upload Files
File: //usr/local/lib/python3.9/site-packages/libpasteurize/fixes/__pycache__/fix_newstyle.cpython-39.pyc
a

q�dgx�@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
�J/usr/local/lib/python3.9/site-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)�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