1
0
mirror of https://github.com/gryf/mc_adbfs.git synced 2025-12-18 12:00:19 +01:00

Python 3's ConfigParser is already the safe one

This commit is contained in:
Thomas Perl
2019-05-09 11:38:21 +02:00
parent 9ffa1a13af
commit c5559f7d41

2
adbfs
View File

@@ -189,7 +189,7 @@ class Conf(object):
if not os.path.exists(conf_fname):
return
cfg = configparser.SafeConfigParser()
cfg = configparser.ConfigParser()
cfg_map = {'debug': (cfg.getboolean, 'debug'),
'dirs_to_skip': (cfg.get, 'dirs_to_skip'),
'suppress_colors': (cfg.get, 'suppress_colors'),