⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.10
/
test
/
support
/
__pycache__
/
View File Name :
script_helper.cpython-310.pyc
o }5h, @ s d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlm Z d dl mZ d dlm Z dadd ZG dd de dd Zd d Zdd Zdd Zdd ZejejdddZdd Zd$ddZd%ddZd&ddZ d'd d!Zd"d# ZdS )( N)source_from_cache)support)make_legacy_pycc C sV t du r)dtjv r da dS zttjdddg W n tjy& da Y t S w da t S )a Returns True if our sys.executable interpreter requires environment variables in order to be able to run at all. This is designed to be used with @unittest.skipIf() to annotate tests that need to use an assert_python*() function to launch an isolated mode (-I) or no environment mode (-E) sub-interpreter process. A normal build & test does not run into this situation but it can happen when trying to run the standard library test suite from an interpreter that doesn't have an obvious home with Python's current home finding logic. Setting PYTHONHOME is one way to get most of the testsuite to run in that situation. PYTHONPATH or PYTHONUSERSITE are other common environment variables that might impact whether or not the interpreter can start. N PYTHONHOMET-Ez-czimport sys; sys.exit(0)F)$__cached_interp_requires_environmentosenviron subprocess check_callsys executableCalledProcessError r r 1/usr/lib/python3.10/test/support/script_helper.py interpreter_requires_environment s r c @ s e Zd ZdZdd ZdS )_PythonRunResultz2Helper for reporting Python subprocess run resultsc C s d}| j | j}}t||krd|| d }t||kr'd|| d }|dd }|dd }td| j|||f )z4Provide helpful details about failed subcommand runsi@ s (... truncated stdout ...)Ns (... truncated stderr ...)asciireplacezRProcess return code is %d command line: %r stdout: --- %s --- stderr: --- %s ---)outerrlendecoderstripAssertionErrorrc)selfcmd_linemaxlenr r r r r fail= s z_PythonRunResult.failN)__name__ __module____qualname____doc__r r r r r r : s r )r r r c O sB t }|dd }d|v r|d}n| o| }tjddg}|r'|d n |s0|s0|d |dd rEi }tjdkrDtjd |d <