/opt/imh/python3.13/lib/python3.13/multiprocessing/__pycache__
Edit: /opt/imh/python3.13/lib/python3.13/multiprocessing/__pycache__/util.cpython-313.pyc (20324B)
ecC S SK r S SKrS SKrS SKrS SKrS SKrS SKJr SSKJ r / SQr
S rSrSr
SrS rS
rSrSrSqS
qS rS rS rS rS rS rS3S jrS rS r\" 5 r\R> S:X a Sr O7\R> RC S5 ( a Sr O\ RD S:X a SOSr S r#S r$S r%\RL " 5 r'\RP " 5 r)S r*S! r+0 r,\RP " 5 r- " S" S#\.5 r/S3S$ jr0S% r1S
q2\\\0\ Rf \ Rh 4S& jr5\Rl " \55 " S' S(\.5 r7 " S) S*\Rp 5 r9 \ Rt " S+5 r;S- r=S. r>S/ r?S0 r@S1 rAS2 rBg! \< a S,r; Nf = f)4 N)_args_from_interpreter_flags )process) sub_debugdebuginfosub_warning
get_logger
log_to_stderrget_temp_dirregister_after_fork
is_exitingFinalizeForkAwareThreadLockForkAwareLocalclose_all_fds_exceptSUBDEBUG
SUBWARNING
multiprocessingz+[%(levelname)s/%(processName)s] %(message)sFc Z [ ( a [ R " [ U /UQ7SS06 g g N
stacklevel )_loggerlogr msgargss :/opt/imh/python3.13/lib/python3.13/multiprocessing/util.pyr r - s$ wHc7D7Q7 c Z [ ( a [ R " [ U /UQ7SS06 g g r )r r DEBUGr! s r$ r r 1 s$ wE344!4 r% c Z [ ( a [ R " [ U /UQ7SS06 g g r )r r INFOr! s r$ r r 5 s$ wD#333 r% c Z [ ( a [ R " [ U /UQ7SS06 g g r )r r WARNINGr! s r$ _warnr, 9 s$ wGS646A6 r% c Z [ ( a [ R " [ U /UQ7SS06 g g r )r r r r! s r$ r r = s$ wJ9d9q9 r% c SSK n U R [ ( d U R [ 5 qS[ l [
[ S5 ( a5 [ R " [ 5 [ R " [ 5 OL[ R R [ S0 45 [ R R [ S0 45 SSS5 [ $ ! , ( d f [ $ = f)z(
Returns logger used by multiprocessing
r N
unregister )logging_lockr getLoggerLOGGER_NAME propagatehasattratexitr/ _exit_functionregister
_exithandlersremoveappend)r1 s r$ r
r
A s
w''4G !G v|,,!!.1/$$++^R,DE$$++^R,DE
N
Ns CC!!
C4c SSK n[ 5 nUR [ 5 nUR 5 nUR U5 UR
U5 U ( a UR U 5 Sq[ $ )z:
Turn on logging and add a handler which prints to stderr
r NT)
r1 r
FormatterDEFAULT_LOGGING_FORMAT
StreamHandlersetFormatter
addHandlersetLevel_log_to_stderrr )levelr1 logger formatterhandlers r$ r r X sb
\F!!"89I##%G#
gNNr% c ( [ R S; $ )N)linuxandroid)sysplatformr0 r% r$ #_platform_supports_abstract_socketsrN m s <<///r% c U ( d g[ U [ 5 ( a U S S:H $ [ U [ 5 ( a U S S:H $ [ SU < S35 e)NFr zaddress type of z
unrecognized)
isinstancebytesstr TypeError)addresss r$ is_abstract_socket_namespacerV q sT '5!!qzQ GS ! !qzT!!
&wk?
@@r% rJ l )openbsdfreebsdh nt\ c d U " U5 [ R " 5 nUb S UR S' g g )Ntempdir)r current_process_config)rmtreer^ r_ s r$ _remove_temp_dirrb s4
7O--/O "-1 * #r% c @ [ R S:X a gU R 5 n[ U5 S- S- nU[ :: a U$ / SQn U R U5 n[ SU5 [ U5 S- S- [ :: d eU$ ! [ a [ SX5 Us $ f = f)zGet a temporary directory where socket files will be created.
To prevent additional imports, pass a pre-imported 'tempfile' module.
r[ N )z/tmpz/var/tmpz/usr/tmpzProcess-wide temporary directory %s will not be usable for creating socket files and no usable system-wide temporary directory was found in %sz-Ignoring user-defined temporary directory: %s)osname
gettempdirlen
_SUN_PATH_MAX_get_default_tempdirFileNotFoundErrorr, )tempfilebase_tempdirsun_path_lendirlistbase_system_tempdirs r$ _get_base_temp_dirrq s
ww$ &&(L |$r)B.L}$ /G &;;GD
9<H"#b(2->>>
*+7 B s B BBc B [ R " 5 R R S5 n U cm SS KnSS Kn[
U5 nUR SUS9n [ SU 5 [ S [ UR U 4SS9 U [ R " 5 R S' U $ )Nr^ r zpymp-)prefixdirzcreated temp directory %si)r# exitpriority)r r_ r` getshutilrl rq mkdtempr r rb ra )r^ rw rl rm s r$ r r s %%'//33I>G)(3""'|"D
('2 'v}}g.F" $7>!)))4Nr% c [ [ R 5 5 n U R 5 U H u u pp4 U" U5 M g ! [ a n[ SU5 S nAM2 S nAff = f)Nz after forker raised exception %s)list_afterfork_registryitemssort Exceptionr )r| indexidentfuncobjes r$ _run_after_forkersr s] $**,-E JJL%*!t 8I &+ 83Q77 8s A
A'A""A'c H U [ [ [ 5 [ U 5 U4' g N)r{ next_afterfork_counterid)r r s r$ r
r
s EH012c7DABr% c Z \ rS rSrSrS
S jrS\\\R 4S jr
S rS rS r
S rg)r z9
Class which supports object finalization using weakrefs
Nc Ub9 [ U[ 5 ( d$ [ SR U[ U5 5 5 eUb [
R " X5 U l OUc [ S5 eX l X0l
U=( d 0 U l U[ [ 5 4U l [ R " 5 U l U [$ U R ' g )Nz3Exitpriority ({0!r}) must be None or int, not {1!s}z+Without object, exitpriority cannot be None)rQ intrT formattypeweakrefref_weakref
ValueError _callback_args_kwargsr _finalizer_counter_keyre getpid_pid_finalizer_registry)selfr callbackr# kwargsru s r$ __init__Finalize.__init__ s $jc.J.JELL $|"467
7 ?#KK2DM
!JKK!
|!4(:#;< IIK )-DII&r% c t X R U R U" 5 :w a U" S5 SnOOU" SU R U R U R 5 U R " U R 0 U R D6nS=U l =U l =U l =U l U l U$ ! [ a U" S5 gf = f)zA
Run the callback unless it has already been called or cancelled
z+finalizer ignored because different processNz/finalizer calling %s with args %s and kwargs %szfinalizer no longer registered)r r r r r r KeyError)r wrr r r ress r$ __call__Finalize.__call__ s #II. yyFH$GHK..$**dllDnndjjADLLA7;