From 577e6f1ca8e079172fcd42f373f5948e84d3d0b6 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 24 Feb 2024 18:19:47 +0300 Subject: [PATCH] Fix(py3): Use `configparser` instead of `ConfigParser` --- xsetbg_conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xsetbg_conf.py b/xsetbg_conf.py index b1b6656..1e54e6c 100755 --- a/xsetbg_conf.py +++ b/xsetbg_conf.py @@ -4,7 +4,7 @@ """ import os -from ConfigParser import SafeConfigParser +from configparser import ConfigParser __all__ = ['xsetbg_conf'] @@ -23,7 +23,7 @@ config_dirs.append(xsetbg_dir) for d in config_dirs: xsetbg_conf_file = os.path.join(d, 'xsetbg.conf') if os.path.exists(xsetbg_conf_file): - xsetbg_conf = SafeConfigParser() + xsetbg_conf = ConfigParser(inline_comment_prefixes=(';', '#')) xsetbg_conf.read(xsetbg_conf_file) break else: -- 2.39.2