Changeset - cecb8eeb07a2
[Not reviewed]
stable
0 1 0
Thomas De Schampheleire - 5 years ago 2020-09-10 20:08:17
thomas.de_schampheleire@nokia.com
cleanup: remove unused code RcConf.update_config
1 file changed with 0 insertions and 17 deletions:
0 comments (0 inline, 0 general)
kallithea/bin/base.py
Show inline comments
 
@@ -137,23 +137,6 @@ class RcConf(object):
 
        else:
 
            sys.stdout.write('Created new config in %s\n' % self._conf_name)
 

	
 
    def update_config(self, new_config):
 
        """
 
        Reads the JSON config updates it's values with new_config and
 
        saves it back as JSON dump
 

	
 
        :param new_config:
 
        """
 
        config = {}
 
        try:
 
            with open(self._conf_name, 'rb') as conf:
 
                config = ext_json.load(conf)
 
        except IOError as e:
 
            sys.stderr.write(str(e) + '\n')
 

	
 
        config.update(new_config)
 
        self.make_config(config)
 

	
 
    def load_config(self):
 
        """
 
        Loads config from file and returns loaded JSON object
0 comments (0 inline, 0 general)