Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 390153 | Differences between
and this patch

Collapse All | Expand All

(-)nut-2.6.2/tools/nut-snmpinfo.py~ (-1 / +3 lines)
Lines 79-85 Link Here
79
output_file.write( "static snmp_device_id_t snmp_device_table[] = {\n" )
79
output_file.write( "static snmp_device_id_t snmp_device_table[] = {\n" )
80
80
81
for filename in glob.glob('../drivers/*-mib.c'):
81
for filename in glob.glob('../drivers/*-mib.c'):
82
	list_of_line = file(filename,'r').read().split(';')
82
	with open(filename, 'r') as f:
83
		list_of_line = f.read().split(';')
84
83
	for line in list_of_line:
85
	for line in list_of_line:
84
		if "mib2nut_info_t" in line:
86
		if "mib2nut_info_t" in line:
85
			#clean up line
87
			#clean up line

Return to bug 390153