1
Fork 0

Rollup merge of #45118 - johnthagen:fix-section-key-name, r=alexcrichton

Fix variable name reference

As best I can tell, this was a typo due to how similar it looks to the function above it. PyCharm found this as a unbound local variable.
This commit is contained in:
kennytm 2017-10-10 00:16:25 +08:00
commit 380b7951ac
No known key found for this signature in database
GPG key ID: FEF6C8051D0E013C

View file

@ -378,7 +378,7 @@ def configure_section(lines, config):
for section_key in config:
section_config = config[section_key]
if not section_key in sections:
raise RuntimeError("config key {} not in sections".format(key))
raise RuntimeError("config key {} not in sections".format(section_key))
if section_key == 'target':
for target in section_config: