MCPcopy
hub / github.com/PokemonGoF/PokemonGo-Bot / fix_nested_config

Function fix_nested_config

pokecli.py:868–875  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

866
867
868def fix_nested_config(config):
869 config_dict = config.__dict__
870
871 for key, value in config_dict.iteritems():
872 if '.' in key:
873 new_key = key.replace('.', '_')
874 config_dict[new_key] = value
875 del config_dict[key]
876
877
878def parse_unicode_str(string):

Callers 1

init_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected