##// END OF EJS Templates
cleanup: remove unused code RcConf.update_config
Thomas De Schampheleire -
r8388:cecb8eeb stable
parent child Browse files
Show More
@@ -137,23 +137,6 b' class RcConf(object):'
137 else:
137 else:
138 sys.stdout.write('Created new config in %s\n' % self._conf_name)
138 sys.stdout.write('Created new config in %s\n' % self._conf_name)
139
139
140 def update_config(self, new_config):
141 """
142 Reads the JSON config updates it's values with new_config and
143 saves it back as JSON dump
144
145 :param new_config:
146 """
147 config = {}
148 try:
149 with open(self._conf_name, 'rb') as conf:
150 config = ext_json.load(conf)
151 except IOError as e:
152 sys.stderr.write(str(e) + '\n')
153
154 config.update(new_config)
155 self.make_config(config)
156
157 def load_config(self):
140 def load_config(self):
158 """
141 """
159 Loads config from file and returns loaded JSON object
142 Loads config from file and returns loaded JSON object
General Comments 0
You need to be logged in to leave comments. Login now