ok

Mini Shell

Direktori : /lib/python2.7/site-packages/tuned/storage/
Upload File :
Current File : //lib/python2.7/site-packages/tuned/storage/pickle_provider.pyo

�
��\c@soddlmZddlZddlZddlZddljZejj	�Z
dejfd��YZdS(i(t
interfacesi����NtPickleProvidercBsYeZddgZd	d�Zd�Zd	d�Zd�Zd�Zd�Z	d�Z
RS(
t_patht_datacCs.|dkrtj}n||_i|_dS(N(tNonetconststDEFAULT_STORAGE_FILERR(tselftpath((sA/usr/lib/python2.7/site-packages/tuned/storage/pickle_provider.pyt__init__s	cCs(|jj|i�||j||<dS(N(Rt
setdefault(Rt	namespacetoptiontvalue((sA/usr/lib/python2.7/site-packages/tuned/storage/pickle_provider.pytsetscCs*|jj|i�|j|j||�S(N(RR
tget(RRRtdefault((sA/usr/lib/python2.7/site-packages/tuned/storage/pickle_provider.pyRscCs;|jj|i�||j|kr7|j||=ndS(N(RR
(RRR((sA/usr/lib/python2.7/site-packages/tuned/storage/pickle_provider.pytunsetscCs�yLtjdt|j��t|jd��}tj|j|�WdQXWn3tt	fk
r�}tj
d|j|f�nXdS(Ns	Saving %stwbs"Error saving storage file '%s': %s(tlogtdebugtstrRtopenRtpickletdumptOSErrortIOErrorterror(Rtfte((sA/usr/lib/python2.7/site-packages/tuned/storage/pickle_provider.pytsavescCs�y1t|jd��}tj|�|_WdQXWnUttfk
ro}tjd|j|f�i|_nt	k
r�i|_nXdS(Ntrbs#Error loading storage file '%s': %s(
RRRtloadRRRRRtEOFError(RRR((sA/usr/lib/python2.7/site-packages/tuned/storage/pickle_provider.pyR 's
cCs[|jj�ytj|j�Wn3ttfk
rV}tjd|j|f�nXdS(Ns$Error removing storage file '%s': %s(	RtcleartostunlinkRRRRR(RR((sA/usr/lib/python2.7/site-packages/tuned/storage/pickle_provider.pyR"1s

N(t__name__t
__module__t	__slots__RR	RRRRR R"(((sA/usr/lib/python2.7/site-packages/tuned/storage/pickle_provider.pyR	s				
(
tRt
tuned.logsttunedRR#ttuned.constsRtlogsRRtProviderR(((sA/usr/lib/python2.7/site-packages/tuned/storage/pickle_provider.pyt<module>s

Zerion Mini Shell 1.0