403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/11490/root/usr/lib/python2.6/site-packages/papyon/util/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/11490/root/usr/lib/python2.6/site-packages/papyon/util/decorator.pyo
Ñò
¶ÛJc@sdZddkZddkZddkZddkZd„Zd„Zed„ƒZed„ƒZed„ƒZ	de
fd	„ƒYZdS(
sUseful decoratorsiÿÿÿÿNcs>‡fd†}ˆi|_ˆi|_|iiˆiƒ|S(sdecorator to be used on decorators, it preserves the docstring and
    function attributes of functions to which it is applied.cs;ˆ|ƒ}|i|_|i|_|ii|iƒ|S(N(t__name__t__doc__t__dict__tupdate(tftg(tfunction(s9/usr/lib/python2.6/site-packages/papyon/util/decorator.pyt
new_decorator s
(RRRR(RR((Rs9/usr/lib/python2.6/site-packages/papyon/util/decorator.pyt	decorators
cCs
t|ƒS(s;This decorator implements read/write properties, as follow:

        @rw_property
        def my_property():
            "Documentation"
            def fget(self):
                return self._my_property
            def fset(self, value):
                self._my_property = value
            return locals()
    (tproperty(R((s9/usr/lib/python2.6/site-packages/papyon/util/decorator.pytrw_property,scs‡fd†}|S(sThis is a decorator which can be used to mark functions as deprecated.
    It will result in a warning being emitted when the function is used.cs'tidˆidtƒˆ||ŽS(NsCall to deprecated function %s.tcategory(twarningstwarnRtDeprecationWarning(targstkwargs(tfunc(s9/usr/lib/python2.6/site-packages/papyon/util/decorator.pytnew_function>s((RR((Rs9/usr/lib/python2.6/site-packages/papyon/util/decorator.pyt
deprecated:scs‡fd†}|S(s–This is a decorator which can be used to mark functions as unstable API
    wise. It will result in a warning being emitted when the function is used.cs'tidˆidtƒˆ||ŽS(Ns!Call to unstable API function %s.R(RR
Rt
FutureWarning(RR(R(s9/usr/lib/python2.6/site-packages/papyon/util/decorator.pyRHs((RR((Rs9/usr/lib/python2.6/site-packages/papyon/util/decorator.pytunstableDscs‡fd†}|S(scMake a function mainloop friendly. the function will be called at the
    next mainloop idle state.cs&‡‡‡fd†}ti|ƒdS(NcsˆˆˆŽtS(N(tFalse((RRR(s9/usr/lib/python2.6/site-packages/papyon/util/decorator.pytasync_functionSs
(tgobjecttidle_add(RRR(R(RRs9/usr/lib/python2.6/site-packages/papyon/util/decorator.pyRRs((RR((Rs9/usr/lib/python2.6/site-packages/papyon/util/decorator.pytasyncNst	throttledcBs eZdZd„Zd„ZRS(sdThrottle the calls to a function by queueing all the calls that happen
    before the minimum delay.cCs||_||_d|_dS(N(t
_min_delayt_queuetNonet_last_call_time(tselft	min_delaytqueue((s9/usr/lib/python2.6/site-packages/papyon/util/decorator.pyt__init__]s		csS‡fd†‰‡‡‡fd†}ˆi|_ˆi|_|iiˆiƒ|S(NcsYtˆiƒdjo?ˆiidƒ\}}}tiƒdˆ_|||ŽntS(Niiè(tlenRtpopttimeRR(RRR(R (s9/usr/lib/python2.6/site-packages/papyon/util/decorator.pyt
process_queuecs
cs«tiƒd}ˆidjp|ˆiˆijo|ˆ_ˆ||ŽnWˆiiˆ||fƒ|ˆi}tˆitˆiƒ|ƒ}ti	|ˆƒdS(Niè(
R&RRRRtappendtintR$Rttimeout_add(RRtnowtlast_call_deltatprocess_queue_timeout(R'R R(s9/usr/lib/python2.6/site-packages/papyon/util/decorator.pyRjs	
 (RRRR(R RR((R R'Rs9/usr/lib/python2.6/site-packages/papyon/util/decorator.pyt__call__bs(Rt
__module__RR#R.(((s9/usr/lib/python2.6/site-packages/papyon/util/decorator.pyRYs	(RtsysRR&RRR
RRRtobjectR(((s9/usr/lib/python2.6/site-packages/papyon/util/decorator.pyt<module>s		



Youez - 2016 - github.com/yon3zu
LinuXploit