b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 /
Filename/usr/lib64/python2.6/warnings.pyo
Size11.92 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 05:34
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc
@s3dZddkZddkZddkZddddddgZdd d
�Zddd �ZeZdd �Z d
e
d
ddd�Z e
ddd�Z d�Z
defd��YZd�Zd�Zd�Zd�Zdd d�Zdddd�Zdefd��YZdefd��YZeZy>ddklZlZlZlZlZeZeZ e!ZWn%e"j
ogZdZhZ nXeei#�ep�e dd e$d!d �e dd e%d!d �ei&i'Z'e'd jo
d"Z(ne'o
dZ(ndZ(e e(d e)d!d �n[dS(#s&Python part of the warnings subsystem.iÿÿÿÿNtwarnt showwarningt
formatwarningtfilterwarningst
resetwarningstcatch_warningsicCs=tio/|djo
t}nt|||d�ndS(s�Issue a deprecation warning for Python 3.x related changes.

Warnings are omitted unless Python is started with the -3 option.
iN(tsyst py3kwarningtNonetDeprecationWarningR(tmessagetcategoryt
stacklevel((s /usr/lib64/python2.6/warnings.pytwarnpy3ks


c
CsW|djo
ti}ny#|it|||||��Wntj
onXdS(s7Hook to write a warning to a file; replace if you like.N(RRtstderrtwriteRtIOError(R
R tfilenametlinenotfiletline((s /usr/lib64/python2.6/warnings.pyt
_show_warnings 

#cCshd|||i|f}|djoti||�n|}|o|i�}|d|7}n|S(s.Function to format a warning the standard way.s%s:%s: %s: %s
s %s
N(t__name__Rt linecachetgetlinetstrip(R
R RRRts((s /usr/lib64/python2.6/warnings.pyR$s & ticCseddk}||i||i�||i|�|f}|oti|�ntid|�dS(s�Insert an entry into the list of warnings filters (at the front).

Use assertions to check that all arguments have the right type.iÿÿÿÿNi(tretcompiletItfilterstappendtinsert(tactionR
R tmoduleRR Rtitem((s /usr/lib64/python2.6/warnings.pyR-s 
cCsA|d|d|f}|oti|�ntid|�dS(s�Insert a simple entry into the list of warnings filters (at the front).

A simple filter matches all modules and messages.
iN(RRR R!(R"R RR R$((s /usr/lib64/python2.6/warnings.pyt simplefilterCs cCs gt(dS(sAClear the list of warning filters, so that no filters are active.N(R(((s /usr/lib64/python2.6/warnings.pyRRst _OptionErrorcBseZdZRS(s,Exception used by option processing helpers.(Rt
__module__t__doc__(((s /usr/lib64/python2.6/warnings.pyR&VscCsNxG|D]?}yt|�Wqtj
o}tidI|IJqXqWdS(NsInvalid -W option ignored:(t
_setoptionR&RR(targstargtmsg((s /usr/lib64/python2.6/warnings.pyt_processoptions[s c
Csoddk}|id�}t|�djotd|f��nx%t|�djo|id�qHWg}|D]}||i�qx~\}}}}} t|�}|i|�}t|�}|i|�}|o|d}n| oZy't | �} | djo
t
�nWqUt
t fj
otd| f��qUXnd} t ||||| �dS( Niÿÿÿÿt:istoo many fields (max 5): %rRt$isinvalid lineno %r(
RtsplittlenR&R Rt
_getactiontescapet _getcategorytintt
ValueErrort
OverflowErrorR(
R+Rtpartst_[1]RR"R
R R#R((s /usr/lib64/python2.6/warnings.pyR)cs0 /   
cCs[|pdS|djodSx#d D]}|i|�o|Sq%Wtd|f��dS(
NtdefaulttalltalwaystignoreR#tonceterrorsinvalid action: %r(sdefaultsalwayssignoresmodulesonceserror(t
startswithR&(R"ta((s /usr/lib64/python2.6/warnings.pyR2~s
 c Cs;ddk}|ptS|id|�o=yt|�}Wqtj
otd|f��qXn©|id�}|| }||d}yt|dd|g�}Wn&t j
otd|f��nXyt
||�}Wn&t j
otd|f��nXt |t�ptd|f��n|S(Niÿÿÿÿs^[a-zA-Z0-9_]+$sunknown warning category: %rt.isinvalid module name: %rsinvalid warning category: %r(
RtWarningtmatchtevalt NameErrorR&trfindt
__import__Rt ImportErrortgetattrtAttributeErrort
issubclass(R RtcattiR#tklasstm((s /usr/lib64/python2.6/warnings.pyR4�s, 
c
Csdt|t�o
|i}n|d jo
t}nyti|�}Wn"tj
oti}d}nX|i }|i
}d|jo|d}nd}|i d�}|o.|i �}|i
d �o|d }q2nP|djo1ytid }Wq!tj
o
d}q!Xn|p
|}n|id
h�} t|||||| |�d S(
s:Issue a warning, or maybe ignore it or raise an exception.iRs<string>t__file__s.pycs.pyoiÿÿÿÿt__main__it__warningregistry__N(s.pycs.pyo(t
isinstanceRCt __class__Rt UserWarningRt _getframeR6t__dict__t f_globalstf_linenotgettlowertendswithtargvRKt
setdefaultt
warn_explicit(
R
R R tcallertglobalsRR#Rtfnltregistry((s /usr/lib64/python2.6/warnings.pyR£s:


    
 

c
Cs@t|�}|djo6|pd}|di�djo|d }qOn|djo
h}nt|t�ot|�}|i}n|}||�}|||f}|i|�odSx�tD]�} | \}
} } }
}| djp| i |�oLt
|| �o<|
djp|
i |�o|djp
||joPqÌqÌWt }
|
djod||<dSt i
||�|
djo
|�n|
djo9d||<||f}ti|�odSdt|<n�|
d jon{|
d
jo<d||<||df}|i|�odSd||<n2|
d jod||<ntd |
| f��d}ttd
�o
ti}n!ttd�otii}n|oq|i|i }d}d|joJ|i|@ o;d}||jot||||�q%t|t�q)nt||||�dS(Ns <unknown>iýÿÿÿs.pyiR=iR?R>R<R#R:s1Unrecognized action (%r) in warnings.filters:
%st func_codet__func__iRsLfunctions overriding warnings.showwarning() must support the 'line' argument(R5RR\RTRCtstrRUR[RRDRLt
defaultactionRtgetlinest onceregistryt RuntimeErrorthasattrRReRft co_varnamest co_argcounttco_flagsRRR (R
R RRR#Rdtmodule_globalsttexttkeyR$R"R,RMtmodtlntoncekeytaltkeytfxn_codeR*t
CO_VARARGStshowwarning_msg((s /usr/lib64/python2.6/warnings.pyR`Ës~ 



 
  





 





tWarningMessagecBs,eZdZd Zd
d
d�Zd�ZRS( s0Holds the result of a single showwarning() call.R
R RRRRc CsOt�}x%|iD]}t||||�qW|o
|ind|_dS(N(tlocalst_WARNING_DETAILStsetattrRRt_category_name( tselfR
R RRRRt local_valuestattr((s /usr/lib64/python2.6/warnings.pyt__init__&s
 
cCs&d|i|i|i|i|ifS(NsD{message : %r, category : %r, filename : %r, lineno : %s, line : %r}(R
R~RRR(R((s /usr/lib64/python2.6/warnings.pyt__str__-s (smessagescategorysfilenameslinenosfileslineN(RR'R(R|RR�R�(((s /usr/lib64/python2.6/warnings.pyRzs  cBs8eZdZedd�Zd�Zd�Zd�ZRS(s�A context manager that copies and restores the warnings filter upon
exiting the context.

The 'record' argument specifies whether warnings should be captured by a
custom implementation of warnings.showwarning() and be appended to a list
returned by the context manager. Otherwise None is returned by the context
manager. The objects appended to the list are arguments whose attributes
mirror the arguments to showwarning().

The 'module' argument is to specify an alternative module to the module
named 'warnings' and imported under that name. This argument is only useful
when testing the warnings module itself.

cCs:||_|djotidn||_t|_dS(sêSpecify whether to record warnings and if an alternative module
should be used other than sys.modules['warnings'].

For compatibility with Python 3.0, please consider all arguments to be
keyword-only.

twarningsN(t_recordRRtmodulest_moduletFalset_entered(RtrecordR#((s /usr/lib64/python2.6/warnings.pyR�Ds $cCsvg}|io|id�n|itidj o|id|i�nt|�i}d|di|�fS(Ns record=TrueR�s module=%rs%s(%s)s, (R�R R�RR�ttypeRtjoin(RR*tname((s /usr/lib64/python2.6/warnings.pyt__repr__Ps
cs�|iotd|��nt|_|ii|_|i|i_|ii|_|io&g��fd�}||i_�SdSdS(NsCannot enter %r twicecs�it||��dS(N(R Rz(R*tkwargs(tlog(s /usr/lib64/python2.6/warnings.pyRbs(
R�RktTrueR�Rt_filtersRt _showwarningR�R(RR((R�s /usr/lib64/python2.6/warnings.pyt __enter__Ys
 
 cGs@|iptd|��n|i|i_|i|i_dS(Ns%Cannot exit %r without entering first(R�RkR�R�RR�R(Rtexc_info((s /usr/lib64/python2.6/warnings.pyt__exit__is
N( RR'R(R�RR�R�R�R�(((s /usr/lib64/python2.6/warnings.pyR3s
 (Rtdefault_actiont
once_registryRR`R:R=R R R?(*R(RRttypest__all__RR
RRRRCRR%Rt ExceptionR&R-R)R2R4RR`tobjectRzRR�t_warnings_defaultst _warningsRR�R�RhRjR�RIt warnoptionstPendingDeprecationWarningt
ImportWarningtflagst
bytes_warningt bytes_actiont BytesWarning(((s /usr/lib64/python2.6/warnings.pyt<module>sX     

     
)SE(