X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=xsetbg_conf.py;h=1e54e6cccf34bbdd042eba66bca62bb651bcd870;hb=02a5420742ce42ca4a602a4550b9838fec37df7b;hp=677b5371e38ea5cf107890520b730e8633d009e8;hpb=5bf30e4e42543b6be01448937183f3470cc731f3;p=xsetbg.git diff --git a/xsetbg_conf.py b/xsetbg_conf.py index 677b537..1e54e6c 100755 --- a/xsetbg_conf.py +++ b/xsetbg_conf.py @@ -1,10 +1,10 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """XSetBg config """ 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: