Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 307091 Details for
Bug 390153
sys-power/nut-2.6.2 fails to build if python is python3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
replace the outdated "file" builtin reference and automatically close after reading
nut-2.6.2-fd-leak-fix.patch (text/plain), 495 bytes, created by
Blu3
on 2012-03-29 14:39:27 UTC
(
hide
)
Description:
replace the outdated "file" builtin reference and automatically close after reading
Filename:
MIME Type:
Creator:
Blu3
Created:
2012-03-29 14:39:27 UTC
Size:
495 bytes
patch
obsolete
>--- nut-2.6.2/tools/nut-snmpinfo.py~ 2012-03-29 10:28:20.000000000 -0400 >+++ nut-2.6.2/tools/nut-snmpinfo.py 2012-03-29 10:31:46.096897921 -0400 >@@ -79,7 +79,9 @@ > output_file.write( "static snmp_device_id_t snmp_device_table[] = {\n" ) > > for filename in glob.glob('../drivers/*-mib.c'): >- list_of_line = file(filename,'r').read().split(';') >+ with open(filename, 'r') as f: >+ list_of_line = f.read().split(';') >+ > for line in list_of_line: > if "mib2nut_info_t" in line: > #clean up line
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 390153
:
307089
| 307091 |
307093