Control: tags 1075760 + pending Dear maintainer,
I've prepared an NMU for hplip (versioned as 3.22.10+dfsg0-5.1) and uploaded it to DELAYED/14. Please feel free to tell me if I should delay it longer. Regards. diff -Nru hplip-3.22.10+dfsg0/debian/changelog hplip-3.22.10+dfsg0/debian/changelog --- hplip-3.22.10+dfsg0/debian/changelog 2024-04-26 17:39:02.000000000 -0400 +++ hplip-3.22.10+dfsg0/debian/changelog 2024-07-09 00:32:24.000000000 -0400 @@ -1,3 +1,10 @@ +hplip (3.22.10+dfsg0-5.1) unstable; urgency=medium + + * Non-maintainer upload. + * Use read_file instead of readfp for python 3.12 (Closes: #1075760) + + -- Tianyu Chen <sweetyf...@deepin.org> Tue, 09 Jul 2024 12:32:24 +0800 + hplip (3.22.10+dfsg0-5) unstable; urgency=medium * take care of implicit function declarations (Closes: #1066348) diff -Nru hplip-3.22.10+dfsg0/debian/patches/0085-python-3.12-compat.patch hplip-3.22.10+dfsg0/debian/patches/0085-python-3.12-compat.patch --- hplip-3.22.10+dfsg0/debian/patches/0085-python-3.12-compat.patch 1969-12-31 19:00:00.000000000 -0500 +++ hplip-3.22.10+dfsg0/debian/patches/0085-python-3.12-compat.patch 2024-07-09 00:32:24.000000000 -0400 @@ -0,0 +1,51 @@ +Description: Use read_file instead of readfp for python 3.12 +Author: Tianyu Chen <sweetyf...@deepin.org> +Bug-Debian: https://bugs.debian.org/1075760 +Forwarded: no +Last-Update: 2024-07-09 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/base/g.py ++++ b/base/g.py +@@ -128,7 +128,7 @@ class ConfigBase(object): + 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) +--- a/ui/devmgr4.py ++++ b/ui/devmgr4.py +@@ -1227,7 +1227,7 @@ class DevMgr4(DevMgr4_base): + + hplip_conf = ConfigParser.ConfigParser() + fp = open("/etc/hp/hplip.conf", "r") +- hplip_conf.readfp(fp) ++ hplip_conf.read_file(fp) + fp.close() + + try: +--- a/ui4/devmgr5.py ++++ b/ui4/devmgr5.py +@@ -1024,7 +1024,7 @@ class DevMgr5(QMainWindow, Ui_MainWindo + + hplip_conf = configparser.ConfigParser() + fp = open("/etc/hp/hplip.conf", "r") +- hplip_conf.readfp(fp) ++ hplip_conf.read_file(fp) + fp.close() + + try: +--- a/ui5/devmgr5.py ++++ b/ui5/devmgr5.py +@@ -1072,7 +1072,7 @@ class DevMgr5(Ui_MainWindow_Derived, Ui_ + + hplip_conf = configparser.ConfigParser() + fp = open("/etc/hp/hplip.conf", "r") +- hplip_conf.readfp(fp) ++ hplip_conf.read_file(fp) + fp.close() + + try: diff -Nru hplip-3.22.10+dfsg0/debian/patches/series hplip-3.22.10+dfsg0/debian/patches/series --- hplip-3.22.10+dfsg0/debian/patches/series 2024-04-26 17:39:02.000000000 -0400 +++ hplip-3.22.10+dfsg0/debian/patches/series 2024-07-09 00:32:24.000000000 -0400 @@ -82,3 +82,4 @@ 0082-Some-of-the-print-modes-for-DeskJet-815C-are-incorre.patch 0083-add-format-string-to-snprintf.patch 0084-take-care-of-implicit-declaration-of-functions.patch +0085-python-3.12-compat.patch
signature.asc
Description: This is a digitally signed message part