MCPcopy Index your code
hub / github.com/pyload/pyload / updateValues

Method updateValues

module/ConfigParser.py:201–217  ·  view source on GitHub ↗

sets the config values from a parsed config file to values in destination

(self, config, dest)

Source from the content-addressed store, hash-verified

199
200
201 def updateValues(self, config, dest):
202 """sets the config values from a parsed config file to values in destination"""
203
204 for section in config.iterkeys():
205 if section in dest:
206 for option in config[section].iterkeys():
207 if option in ("desc", "outline"): continue
208
209 if option in dest[section]:
210 dest[section][option]["value"] = config[section][option]["value"]
211
212 #else:
213 # dest[section][option] = config[section][option]
214
215
216 #else:
217 # dest[section] = config[section]
218
219 def saveConfig(self, config, filename):
220 """saves config to filename"""

Callers 1

readConfigMethod · 0.95

Calls 1

iterkeysMethod · 0.45

Tested by

no test coverage detected