提交 8aa3dc1d authored 作者: carriepl's avatar carriepl

Merge pull request #3256 from mop/allow-sections-with-dots

enable dots in section names
...@@ -144,7 +144,7 @@ def fetch_val_for_key(key): ...@@ -144,7 +144,7 @@ def fetch_val_for_key(key):
# next try to find it in the config file # next try to find it in the config file
# config file keys can be of form option, or section.option # config file keys can be of form option, or section.option
key_tokens = key.split('.') key_tokens = key.rsplit('.', 1)
if len(key_tokens) > 2: if len(key_tokens) > 2:
raise KeyError(key) raise KeyError(key)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论