X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=xsetbg_conf.py;h=1e54e6cccf34bbdd042eba66bca62bb651bcd870;hb=577e6f1ca8e079172fcd42f373f5948e84d3d0b6;hp=b1b6656b32d2a788a874bfe79a46eb5bf4b86765;hpb=080d6169f03836330b355e5304e51122d7956c11;p=xsetbg.git 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: