File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1023,15 +1023,16 @@ def parse_languages_from_config():
1023
1023
"""Read config.toml to discover languages to build."""
1024
1024
config = tomlkit .parse ((HERE / "config.toml" ).read_text (encoding = "UTF-8" ))
1025
1025
languages = []
1026
+ defaults = config ["defaults" ]
1026
1027
for name , section in config ["languages" ].items ():
1027
1028
languages .append (
1028
1029
Language (
1029
1030
name ,
1030
1031
section .get ("iso639_tag" , name ),
1031
1032
section ["name" ],
1032
- section .get ("in_prod" , config [ " defaults" ] ["in_prod" ]),
1033
- sphinxopts = section .get ("sphinxopts" , config [ " defaults" ] ["sphinxopts" ]),
1034
- html_only = section .get ("html_only" , config [ " defaults" ] ["html_only" ]),
1033
+ section .get ("in_prod" , defaults ["in_prod" ]),
1034
+ sphinxopts = section .get ("sphinxopts" , defaults ["sphinxopts" ]),
1035
+ html_only = section .get ("html_only" , defaults ["html_only" ]),
1035
1036
)
1036
1037
)
1037
1038
return languages
You can’t perform that action at this time.
0 commit comments