mirror of
https://github.com/triqs/dft_tools
synced 2024-11-18 12:03:50 +01:00
[fix] deprecated safeconfigparser
This commit is contained in:
parent
901722ad58
commit
999cbb13a2
@ -73,8 +73,8 @@ class ConfigParameters:
|
||||
################################################################################
|
||||
def __init__(self, input_filename, verbosity=1):
|
||||
self.verbosity = verbosity
|
||||
self.cp = configparser.SafeConfigParser()
|
||||
self.cp.readfp(open(input_filename, 'r'))
|
||||
self.cp = configparser.ConfigParser()
|
||||
self.cp.read_file(open(input_filename, 'r'))
|
||||
|
||||
self.parameters = {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user