mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Use `cls
` variable to instantiate
This commit is contained in:
parent
13455067e8
commit
2a43b44ec6
@ -183,7 +183,7 @@ class Config(object):
|
||||
# type: (unicode, unicode, Dict, Tags) -> Config
|
||||
"""Create a Config object from configuration file."""
|
||||
namespace = eval_config_file(confdir, filename, tags)
|
||||
return Config(namespace, overrides or {})
|
||||
return cls(namespace, overrides or {})
|
||||
|
||||
def check_types(self):
|
||||
# type: () -> None
|
||||
|
Loading…
Reference in New Issue
Block a user