Viewing File: /usr/lib/python2.7/site-packages/sos/plugins/python.pyc


Kjc@sddlmZmZmZmZddlZddlZddlZddl	Z	deeefdYZ
de
efdYZdS(i(tPlugintRedHatPlugintDebianPlugintUbuntuPluginNtPythoncBs/eZdZdZdZdZdZdZRS(sPython runtime
    tpythontsystems	python -VcCs'|j|jdd|jddS(Ntsuggest_filenamespython-versionspip list(tadd_cmd_outputtpython_version(tself((s6/usr/lib/python2.7/site-packages/sos/plugins/python.pytsetups(ssystem(spython(t__name__t
__module__t__doc__tplugin_nametprofilestpackagesR	R(((s6/usr/lib/python2.7/site-packages/sos/plugins/python.pyRstRedHatPythoncBs,eZdZdddefgZdZRS(	Rtpython36tpython2splatform-pythonthashess"gather hashes for all python filestslowc
Cs|jddgt|jtjjjrO|jjdkrOd|_nt	t
|j|jdrigd6}ddd	d
g}x|D]}x	t
j|D]\}}}x|D]}t
jj||}|jdryt|dw}	tj}
d
}x0trF|	j|}|rB|
j|qPqW|
j}
|dji|d6|
d6WdQXWqtk
r|jd|qXqqWqWqW|jtj|dndS(Ns
python2 -Vs
python3 -Vis/usr/libexec/platform-python -VRtdigestss/usr/libs
/usr/lib64s/usr/local/libs/usr/local/lib64s.pytrbitfilepathtsha256s Unable to read python file at %ssdigests.json(Rt
isinstancetpolicytsostpoliciestredhatt
RHELPolicytdist_versionR	tsuperRRt
get_optiontostwalktpathtjointendswithtopenthashlibRtTruetreadtupdatet	hexdigesttappendtIOErrort
_log_errortadd_string_as_filetjsontdumps(
R
Rtpy_pathstpy_pathtroott_tfilestfile_Rtftdigesttchunktdata((s6/usr/lib/python2.7/site-packages/sos/plugins/python.pyR+sF
	

	

(spythonRRsplatform-python(RR
RtFalsetoption_listR(((s6/usr/lib/python2.7/site-packages/sos/plugins/python.pyR$s	(tsos.pluginsRRRRtsos.policiesRR$R3R*RR(((s6/usr/lib/python2.7/site-packages/sos/plugins/python.pyt<module>s"
Back to Directory File Manager