ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/usr/lib/python2.7/site-packages/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/usr/lib/python2.7/site-packages/hwdata.pyo

�
��POc@s0dZddd��YZddd��YZdS(sF Query hwdata database and return decription of vendor and/or device. tUSBcBs8eZdZdZdZdd�Zd�Zd�ZRS(s) Interace to usb.ids from hwdata package s/usr/share/hwdata/usb.idsc
Cs�|r||_ntj|_d|_|jr�tjr�it_x�t|j�j�D]h}|j�}|jd�r�|jd�rYPq�qYqYt|�dkr�qYqY|jd�r|dj	�}t|�dkr�dj
|d�}nd}|tj|d|d|<qY|jd	�rh|dj	�}dj
|d�}|igtj|d|<qY|dj	�}dj
|d�}	|tjkr�|	igtj|<qY|	tj|d<qYWnd
S(s Load pci.ids from file to internal data structure.
            parameter 'filename' can specify location of this file
        it#s8# List of known device classes, subclasses and protocolsis		it ts	N(tfilenameRtcachetdevicestopent	readlinestsplitt
startswithtlentlowertjoin(
tselfRtlinetltinterface_idtinterface_nametvendortdevicetdevice_nametvendor_name((s*/usr/lib/python2.7/site-packages/hwdata.pyt__init__s:		 cCsA|j�}|jr:|tjkr3tj|dSdSn�dS(s~ Return description of vendor. Parameter is two byte code in hexa.
            If vendor is unknown None is returned.
        iN(RRRRtNone(RR((s*/usr/lib/python2.7/site-packages/hwdata.pyt
get_vendor@s	cCss|j�}|j�}|jrl|tjkre|tj|dkr^tj|d|dSdSqodSn�dS(s� Return description of device. Parameters are two byte code variables in hexa.
            If device is unknown None is returned.
        iiN(RRRRR(RRR((s*/usr/lib/python2.7/site-packages/hwdata.pyt
get_deviceMs	N(	t__name__t
__module__t__doc__RRRRRR(((s*/usr/lib/python2.7/site-packages/hwdata.pyRs)	
tPCIcBs8eZdZdZdZdd�Zd�Zd�ZRS(s) Interace to pci.ids from hwdata package s/usr/share/hwdata/pci.idsc	Csm|r||_ntj|_d|_|jritjrii}it_xt|j�j�D]}|j�}|jd�r�q_q_t|�dkr�q_q_|jd�r�q_q_|jd�r�|dj	�}dj
|d�}|tj|d|<q_|dj	�}dj
|d�}|ttjj��krQ|igtj|<q_|tj|d<q_WndS(s Load pci.ids from file to internal data structure.
            parameter 'filename' can specify location of this file
        iRis		s	RN(
RRRRRRR	R
RRR
tlisttkeys(	RRtpcirecRRRRRR((s*/usr/lib/python2.7/site-packages/hwdata.pyRcs0		cCsM|j�}|jrF|ttjj��kr?tj|dSdSn�dS(s~ Return description of vendor. Parameter is two byte code in hexa.
            If vendor is unknown None is returned.
        iN(RRRRRR R(RR((s*/usr/lib/python2.7/site-packages/hwdata.pyR�s	cCs�|j�}|j�}|jr�|ttjj��kry|ttj|dj��krrtj|d|SdSq�dSn�dS(s� Return description of device. Parameters are two byte code variables in hexa.
            If device is unknown None is returned.
        iN(RRRRRR R(RRR((s*/usr/lib/python2.7/site-packages/hwdata.pyR�s	#N(	RRRRRRRRR(((s*/usr/lib/python2.7/site-packages/hwdata.pyR^s"	
N(((RRR(((s*/usr/lib/python2.7/site-packages/hwdata.pyt<module>sL

Zerion Mini Shell 1.0