MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / read

Method read

client/util/configlib.py:35–46  ·  view source on GitHub ↗

读取ini格式的配置内容 :param section_name: 需要读取的块名 :param cfg_string: str, 配置字符串 :param cfg_file: str, 配置文件路径 :return: dict, 配置键值对

(self, section_name)

Source from the content-addressed store, hash-verified

33 self._cfg.read(self._cfg_file, encoding=encoding)
34
35 def read(self, section_name):
36 """
37 读取ini格式的配置内容
38 :param section_name: 需要读取的块名
39 :param cfg_string: str, 配置字符串
40 :param cfg_file: str, 配置文件路径
41 :return: dict, 配置键值对
42 """
43 rule_params_dict = {}
44 for key, value in self._cfg.items(section_name):
45 rule_params_dict[key] = value
46 return rule_params_dict
47
48 def get_section_names(self):
49 """

Callers 15

add_local_settingMethod · 0.95
__init__Method · 0.45
scan_fileMethod · 0.45
_get_ignore_commentsMethod · 0.45
unzip_fileMethod · 0.45
__init__Method · 0.45
requestMethod · 0.45
get_md5Method · 0.45
get_sha256Method · 0.45
load_dataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected