From 80a52ee0d83ec424f0c37b85a78dd4e95a55d21f Mon Sep 17 00:00:00 2001 From: Michael Farrell Date: Mon, 3 Mar 2025 11:43:13 +1000 Subject: [PATCH] Fix casc_extract on Python >= 3.12 (`configparser.readfp` -> `read_file`) --- casc_extract/build_cfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/casc_extract/build_cfg.py b/casc_extract/build_cfg.py index 20fd3518d76..d219aaf2a1d 100644 --- a/casc_extract/build_cfg.py +++ b/casc_extract/build_cfg.py @@ -156,7 +156,7 @@ def open(self): # Slight hack to get the configuration file read easily conf_str = '[base]\n' + open(build_cfg_path, 'r').read() conf_str_fp = io.StringIO(conf_str) - self.cfg.readfp(conf_str_fp) + self.cfg.read_file(conf_str_fp) print(f'Wow build: {build_version}')