-#! /usr/bin/env python
+#! /usr/bin/env python3
"""XSetBg config
"""
import os
-from ConfigParser import SafeConfigParser
+from configparser import ConfigParser
__all__ = ['xsetbg_conf']
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: