Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/compiler/misc.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@sKd�Zdd	d��YZdd
d��YZdZd�Zd�ZdS(cCsJg}x=|D]5}t|t�r5|t|�}q
|j|�q
W|S(N(t
isinstancettupletflattentappend(ttupteltstelt((s#/sys/lib/python2.7/compiler/misc.pyRs
tSetcBsPeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(cCs
i|_dS(N(R(tself((s#/sys/lib/python2.7/compiler/misc.pyt__init__scCs
t|j�S(N(tlenR(R((s#/sys/lib/python2.7/compiler/misc.pyt__len__scCs
||jkS(N(R(RR((s#/sys/lib/python2.7/compiler/misc.pyt__contains__scCs||j|<dS(N(R(RR((s#/sys/lib/python2.7/compiler/misc.pytaddscCs
|jj�S(N(Rtkeys(R((s#/sys/lib/python2.7/compiler/misc.pytelementsscCs
||jkS(N(R(RR((s#/sys/lib/python2.7/compiler/misc.pythas_eltscCs|j|=dS(N(R(RR((s#/sys/lib/python2.7/compiler/misc.pytremovescCs t�}|jj|j�|S(N(RRtupdate(Rtc((s#/sys/lib/python2.7/compiler/misc.pytcopys	(
t__name__t
__module__R	RRR
RRRR(((s#/sys/lib/python2.7/compiler/misc.pyRs							tStackcBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCsg|_|jj|_dS(N(tstacktpop(R((s#/sys/lib/python2.7/compiler/misc.pyR	 s	cCs
t|j�S(N(R
R(R((s#/sys/lib/python2.7/compiler/misc.pyR#scCs|jj|�dS(N(RR(RR((s#/sys/lib/python2.7/compiler/misc.pytpush%scCs|jdS(Ni�(R(R((s#/sys/lib/python2.7/compiler/misc.pyttop'scCs|j|S(N(R(Rtindex((s#/sys/lib/python2.7/compiler/misc.pyt__getitem__)s(RRR	RRRR(((s#/sys/lib/python2.7/compiler/misc.pyRs
				icCs�|jd�s|St|�dtkr-|S|jd�r@|Sy+d}x||dkri|d}qLWWntk
r|SX||}t|�t|�}|tkr�|t| }nd||fS(Nt__iit_is_%s%s(t
startswithR
t
MANGLE_LENtendswitht
IndexError(tnametklasstittlen((s#/sys/lib/python2.7/compiler/misc.pytmangle.s"

cCsE|g}x5|r@|jd�}||_|j|j��qWdS(s<Set the filename attribute to filename on every node in treeiN(Rtfilenametextendt
getChildNodes(R)ttreetworklisttnode((s#/sys/lib/python2.7/compiler/misc.pytset_filenameCs
			N(((RRRR!R(R/(((s#/sys/lib/python2.7/compiler/misc.pyt<module>s
		
	

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].