From: Oleg Broytman Date: Sat, 24 Feb 2024 15:19:47 +0000 (+0300) Subject: Fix(py3): Use `configparser` instead of `ConfigParser` X-Git-Tag: 5.1.0~2 X-Git-Url: https://git.phdru.name/?p=xsetbg.git;a=commitdiff_plain;h=577e6f1ca8e079172fcd42f373f5948e84d3d0b6 Fix(py3): Use `configparser` instead of `ConfigParser` --- 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: