From 352e8ae263e2185290a1d582935930456cbf42f1 Mon Sep 17 00:00:00 2001 From: Gabriele Mongiano Date: Fri, 8 Nov 2024 15:22:15 +0100 Subject: [PATCH] Fix settings file reading method in Settings.py - Updated method from `readfp` to `read_file` for compatibility with Python 3. - No change in functionality; improves code compliance with current Python standards. --- afew/Settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/afew/Settings.py b/afew/Settings.py index 44d6f3c..86a543b 100644 --- a/afew/Settings.py +++ b/afew/Settings.py @@ -18,7 +18,7 @@ # preserve the capitalization of the keys. settings.optionxform = str -settings.readfp(open(os.path.join(os.path.dirname(__file__), 'defaults', 'afew.config'))) +settings.read_file(open(os.path.join(os.path.dirname(__file__), 'defaults', 'afew.config'))) settings.read(os.path.join(user_config_dir, 'config')) # All the values for keys listed here are interpreted as ;-delimited lists