Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 894962 Details for
Bug 932150
net-print/hplip needs upgrade to Python 3.12
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix depracated use of configparser.readfp()
hplip-3.23.12-fix-deprecated-readfp.patch (text/plain), 1.77 KB, created by
David
on 2024-06-02 17:51:35 UTC
(
hide
)
Description:
Fix depracated use of configparser.readfp()
Filename:
MIME Type:
Creator:
David
Created:
2024-06-02 17:51:35 UTC
Size:
1.77 KB
patch
obsolete
>diff -dNur a/base/g.py b/base/g.py >--- a/base/g.py 2023-11-27 16:06:40.000000000 +0100 >+++ b/base/g.py 2024-06-02 19:45:58.179288940 +0200 >@@ -128,7 +128,7 @@ > try: > fp = open(self.filename, "r") > try: >- self.conf.readfp(fp) >+ self.conf.read_file(fp) > except configparser.MissingSectionHeaderError: > print("") > log.error("Found No Section in %s. Please set the http proxy for root and try again." % self.filename) >diff -dNur a/ui/devmgr4.py b/ui/devmgr4.py >--- a/ui/devmgr4.py 2023-11-27 16:06:41.000000000 +0100 >+++ b/ui/devmgr4.py 2024-06-02 19:47:18.623702807 +0200 >@@ -1227,7 +1227,7 @@ > > hplip_conf = ConfigParser.ConfigParser() > fp = open("/etc/hp/hplip.conf", "r") >- hplip_conf.readfp(fp) >+ hplip_conf.read_file(fp) > fp.close() > > try: >diff -dNur a/ui4/devmgr5.py b/ui4/devmgr5.py >--- a/ui4/devmgr5.py 2023-11-27 16:06:41.000000000 +0100 >+++ b/ui4/devmgr5.py 2024-06-02 19:47:29.427758338 +0200 >@@ -1024,7 +1024,7 @@ > > hplip_conf = configparser.ConfigParser() > fp = open("/etc/hp/hplip.conf", "r") >- hplip_conf.readfp(fp) >+ hplip_conf.read_file(fp) > fp.close() > > try: >diff -dNur a/ui5/devmgr5.py b/ui5/devmgr5.py >--- a/ui5/devmgr5.py 2023-11-27 16:06:41.000000000 +0100 >+++ b/ui5/devmgr5.py 2024-06-02 19:47:42.063823270 +0200 >@@ -1074,7 +1074,7 @@ > > hplip_conf = configparser.ConfigParser() > fp = open("/etc/hp/hplip.conf", "r") >- hplip_conf.readfp(fp) >+ hplip_conf.read_file(fp) > fp.close() > > try:
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 932150
: 894962