MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /usr/share/printconf/util/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/printconf/util/scan_usb_devices.pyo
mς
^άDc@sSdkZd„ZeidddddddƒZd	„Zeid
ƒZd„Zeidd
dƒZd„ZeiddddddddƒZ	d„Z
eiddddƒZd„Zeiddd d!d"d#ƒZ
d$„Zeid%d&d'ƒZd(„Zeid)d*d+d,d-ƒZd.„Zd/„ZdS(0NcCs;d}x ||djo|d}q	Wtd||ƒS(Nit it0x(titstrteval(RR((t-/usr/share/printconf/util/scan_usb_devices.pyt_hexstring2ints
s".*If#=(?P<interface_number>\s*\S*)s+\s*Alt=(?P<alternate_setting_number>\s*\S*)s'\s*#EPs=(?P<number_of_endpoints>\s*\S*)sK\s*Cls=(?P<interface_class_number>[^(]*)\((?P<interface_class_name>[^)]*)\)s%\s*Sub=(?P<interface_subclass>\s*\S*)s&\s*Prot=(?P<interface_protocol>\s*\S*)s+\s*Driver=(?P<interface_driver_name>\s*\S*)cCs’ti|ƒiƒ}hdt|dƒ<dt|dƒ<dt|dƒ<dt|dƒ|df<dt|dƒ<dt|dƒ<d	|d	<S(
Ntinterface_numbertalternate_setting_numbertnumber_of_endpointstinterface_classtinterface_class_numbertinterface_class_nametinterface_subclasstinterface_protocoltinterface_driver_name(t&_parse_interface_descriptor_line_regextsearchtlinet	groupdicttm_dicttintR(RR((Rt _parse_interface_descriptor_linessS:\s*(?P<key>\S*)=(?P<value>.*)cCs*ti|ƒiƒ}h|d|d<S(Ntkeytvalue(t#_parse_string_descriptor_line_regexRRRR(RR((Rt_parse_string_descriptor_line$ss.*Vendor=(?P<vendor_id>\s*\S*)s \s*ProdID=(?P<product_id>\s*\S*)s@\s*Rev=(?P<product_revision_a>[^.]*).(?P<product_revision_b>\S*)cCsbti|ƒiƒ}hdt|dƒ<dt|dƒ<dt|dƒt|dƒf<S(Nt	vendor_idt
product_idtproduct_revisiontproduct_revision_atproduct_revision_b(t_parse_product_id_line_regexRRRRR(RR((Rt_parse_product_id_line-ss.*Bus=(?P<bus_number>\s*\S*)s\s*Lev=(?P<level>\s*\S*)s(\s*Prnt=(?P<parent_device_number>\s*\S*)s*\s*Port=(?P<parent_connection_port>\s*\S*)s \s*Cnt=(?P<sibling_count>\s*\S*)s!\s*Dev#=(?P<device_number>\s*\S*)s\s*Spd=(?P<device_speed>\s*\S*)s \s*MxCh=(?P<max_children>\s*\S*)cCs±ti|ƒiƒ}hdt|dƒ<dt|dƒ<dt|dƒ<dt|dƒ<dt|dƒ<dt|dƒ<dt|dƒ<dt|dƒ<S(	Nt
bus_numbertleveltparent_device_numbertparent_connection_portt
sibling_countt
device_numbertdevice_speedtmax_children(t_parse_topology_line_regexRRRRRtfloat(RR((Rt_parse_topology_line@ssH.*Ad=(?P<endpoint_address_number>[^(]*)\((?P<endpoint_address_char>\S)\)sC\s*Atr=(?P<attributes_number>[^(]*)\((?P<attributes_string>[^)]*)\)s,\s*MxPS=(?P<endpoint_max_packet_size>\s*\S*)s\s*Ivl=(?P<interval>\s*\S*)mscCsyti|ƒiƒ}hdt|dƒ|df<dt|dƒ|df<dt|dƒ<dt|dƒ<S(	Ntendpoint_addresstendpoint_address_numbertendpoint_address_chart
attributestattributes_numbertattributes_stringtendpoint_max_packet_sizetinterval(t_parse_endpoint_line_regexRRRRR(RR((Rt_parse_endpoint_lineSssH.*Ver=(?P<device_usb_version_a>\s*\S*)\.(?P<device_usb_version_b>\s*\S*)sE\s*Cls=(?P<device_class_number>[^(]*)\((?P<device_class_name>[^)]*)\)s"\s*Sub=(?P<device_subclass>\s*\S*)s#\s*Prot=(?P<device_protocol>\s*\S*)s4\s*MxPS=(?P<default_endpoint_max_packet_size>\s*\S*)s&\s*#Cfgs=(?P<number_of_configs>\s*\S*)cCs₯ti|ƒiƒ}hdt|dƒt|dƒf<dt|dƒ|df<dt|dƒ<dt|dƒ<d	t|d	ƒ<d
t|d
ƒ<S(Ntdevice_usb_versiontdevice_usb_version_atdevice_usb_version_btdevice_classtdevice_class_numbertdevice_class_nametdevice_subclasstdevice_protocolt default_endpoint_max_packet_sizetnumber_of_configs(t#_parse_device_descriptor_line_regexRRRRRR(RR((Rt_parse_device_descriptor_linefssd.*Alloc=(?P<allocation_a>[^/]*)/(?P<allocation_b>\s*\S*)\s*us\s*\((?P<allocation_percent>\s*\S*)%\),s(\s*#Int=(?P<number_of_interupts>\s*\S*),s2\s*#Iso=(?P<number_of_isochronous_requests>\s*\S*)cCsoti|ƒiƒ}hdt|dƒt|dƒt|dƒf<dt|dƒ<dt|dƒ<S(Nt
allocationtallocation_atallocation_btallocation_percenttnumber_of_interuptstnumber_of_isochronous_requests(t_parse_bandwidth_line_regexRRRRRR(RR((Rt_parse_bandwidth_linexssC:(?P<active>.)s(\s*#Ifs=(?P<number_of_interfaces>\s*\S*)s(\s*Cfg#=(?P<configuration_number>\s*\S*)s\s*Atr=(?P<attributes>\s*\S*)s \s*MxPwr=(?P<max_power>\s*\S*)mAcCsxti|ƒiƒ}hd|ddj<dt|dƒ<dt|dƒ<dt|dƒ<dt|dƒ<S(Ntactivet*tnumber_of_interfacestconfiguration_numberR0t	max_power(t_parse_config_line_regexRRRRRR(RR((Rt_parse_config_lineŠsc	sξtdƒiƒ}g}g}|‡d†}|d„‰||ˆd„}d|||ˆ|d„}||ˆ|d„}d}x`t|ƒoR|ƒdjo@t
ˆƒƒ}|ihdg<ƒg|d<|i|ƒq„|ƒd	jo|itˆƒƒƒq„|ƒd
jo|itˆƒƒƒq„|ƒdjo|itˆƒƒƒq„|ƒdjo|itˆƒƒƒq„|ƒd
jo|di||ƒƒq„|ƒdjo|ƒq„td|ƒ‚q„W||fS(Ns/proc/bus/usb/devicescs,|dddjoˆƒn|ddS(Nis
(tlinestpop_line(RR(RS(Rt	line_typešscCs
|idƒS(Ni(RRtpop(RR((RRSŸscCs7|ƒdjotd|ƒ‚nt|ƒƒ}dS(NtEs!Scaning endpoint, found '%s' line(RTt
ValueErrorR6RStendpoint(RRRTRSRX((Rt
scan_endpoint’scCs‡|ƒdjotd|ƒ‚nt|ƒƒ}g|d<||d<|i|ƒx,t|dƒD]}|di|ƒƒqeW|S(NtIs"Scaning interface, found '%s' linet	endpointstdeviceR	(RTRWRRSt	interfaceR\t
interfacestappendtrangeRRY(R\RRR^RTRSRYRR]((Rtscan_interface¨s


cCss|ƒdjotd|ƒ‚nt|ƒƒ}g|d<x/t|dƒD]}|di||ƒƒqNWdS(NtCsScaning config, found '%s' lineR^RM(
RTRWRQRStconfigR`RR_RaR\(R\RRRTRSRaRRc((Rtscan_config·s
tTtconfigstBtDtPtSRbRZs'Expecting Topology line 'T', found '%s'(topent	readlinesRRtdevicesR^RTRSRYtNoneRaRdR\tlenR,tupdateR_RJRBR!RRW(	R^RRRaRSRdRYRTRmR\((RSRtscan_usb_devices”s<

(treRtcompileRRRRR R!R*R,R5R6RARBRIRJRPRQRq(RIR RARRBRPR,RqRRR5RQRrRR*RJR6R!R((Rt?s$		'		
			+
	
	#	
		

Anon7 - 2021