mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Eliminate a redundant variable
This commit is contained in:
parent
edf52e709f
commit
826ba0fcd9
@ -244,8 +244,7 @@ class Config:
|
||||
Initialize some limited config variables before initializing i18n and loading
|
||||
extensions.
|
||||
"""
|
||||
variables = ['needs_sphinx', 'suppress_warnings', 'language', 'locale_dirs']
|
||||
for name in variables:
|
||||
for name in 'needs_sphinx', 'suppress_warnings', 'language', 'locale_dirs':
|
||||
try:
|
||||
if name in self.overrides:
|
||||
self.__dict__[name] = self.convert_overrides(name, self.overrides[name])
|
||||
|
Loading…
Reference in New Issue
Block a user