| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/lib2to3/fixes/ |
Upload File : |
ó
—|_c @ sO d Z d d l m Z m Z d d l m Z m Z d e j f d „ ƒ YZ d S( s:
Optional fixer to transform set() calls to set literals.
iÿÿÿÿ( t
fixer_baset pytree( t tokent symst
FixSetLiteralc B s# e Z e Z e Z d Z d „ Z RS( sj power< 'set' trailer< '('
(atom=atom< '[' (items=listmaker< any ((',' any)* [',']) >
|
single=any) ']' >
|
atom< '(' items=testlist_gexp< any ((',' any)* [',']) > ')' >
)
')' > >
c C s | j d ƒ } | rI t j t j | j ƒ g ƒ } | j | ƒ | } n
| d } t j t j d ƒ g } | j
d „ | j Dƒ ƒ | j t j t j
d ƒ ƒ | j j | d _ t j t j | ƒ } | j | _ t | j ƒ d k r| j d } | j ƒ | j | j d _ n | S( Nt singlet itemsu {c s s | ] } | j ƒ Vq d S( N( t clone( t .0t n( ( s3 /usr/lib/python2.7/lib2to3/fixes/fix_set_literal.pys <genexpr>' s u }iÿÿÿÿi i ( t getR t NodeR t listmakerR t replacet LeafR t LBRACEt extendt childrent appendt RBRACEt next_siblingt prefixt dictsetmakert lent remove( t selft nodet resultsR t fakeR t literalt makerR ( ( s3 /usr/lib/python2.7/lib2to3/fixes/fix_set_literal.pyt transform s"