diff --git a/base/g.py b/base/g.py index 0aa0e2e..96b3131 100644 --- 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, self.filename) except configparser.MissingSectionHeaderError: print("") log.error("Found No Section in %s. Please set the http proxy for root and try again." % self.filename) diff --git a/ui5/devmgr5.py b/ui5/devmgr5.py index 3110a0f..3761f89 100644 --- a/ui5/devmgr5.py +++ b/ui5/devmgr5.py @@ -1072,7 +1072,7 @@ class DevMgr5(Ui_MainWindow_Derived, Ui_MainWindow, QMainWindow): hplip_conf = configparser.ConfigParser() fp = open("/etc/hp/hplip.conf", "r") - hplip_conf.readfp(fp) + hplip_conf.read_file(fp, "/etc/hp/hplip.conf") fp.close() try: